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

Fix exception messages

未關閉
#16 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug good first issue hacktoberfest help wanted
主要語言
PHP
星號
5
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。