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

Fix exception messages

Abierto
#16 5 comentarios 0 reacciones 0 asignados Ver en GitHub
bug good first issue hacktoberfest help wanted
Lenguaje dominante
PHP
Estrellas
5
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.