Closed alphaville closed 9 years ago
When performing a HTTP request, a .readEntity(Task.class)
is not safe to do since in case the request fails, the response will not be a task, but an ErrorReport
. I thus discovered that the remote service returns a 403
(forbidden) and an accompanying error report:
"errorReport": {
"code": "Unauthorized",
"actor": "client",
"message": "Please login first!",
"details": "The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead. ",
"httpStatus": 403,
"_id": "ERRTx1KxAwktv"
},
I'm now going to look into it...
associated with issue #22
fixed
When I try to train a model using a training algorithm (local or remote) and I specify a remote DoA, I get the following error. If instead, I use a local URI (on localhost) for the DoA, it works fine. It seems that what I try to cast as
Task
contains a fields calledcode
which pertains toErrorReport
.