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

Fix exception messages

Đang mở
#16 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue hacktoberfest help wanted
Ngôn ngữ chính
PHP
Star
5
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.