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

Fix exception messages

Open
#16 5 comments 0 reactions 0 assignees View on GitHub
bug good first issue hacktoberfest help wanted
Dominant language
PHP
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.