adam-paterson / adam-paterson/ibm-watson-sdk

Fix exception messages

Offen
#16 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug good first issue hacktoberfest help wanted
Vorherrschende Sprache
PHP
Sterne
5
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

API errors are in the format:

```json
{
"code":401,
"error":"Not Authorized",
"description":"2017-10-06T08:57:02-04:00, Error ERCDPLTFRM-DNLKUPERR occurred when accessing https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=2017-10-06&sentences=1, Tran-Id: gateway-dp01-307987946 - Invalid UserId and/or Password. Please confirm that your credentials match the end-point you are trying to access. A common error is trying to use credentials from an experimental or beta release against a GA release or vice versa"
}
```

We need to amend `\IBM\Watson\Common\Api\AbstractApi::handleErrors()` to account for that format.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Locate the PHP class containing IBM\Watson\Common\Api\AbstractApi::handleErrors() and inspect how it currently interprets API error responses. Use the JSON example in the issue as the reproduction input; done means the handler accounts for that response format without breaking existing error handling, with relevant tests if the repository provides them.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
php
Bereich
api, backend
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.