Open gr2m opened 8 years ago
It should probably return a generic connection error saying that the account backend cannot be reached, as clearly the server does not respond as expected
Hey I would like to tackle this issue and was looking into this. I was wondering if there is a way to reproduce this error message?
Hey @thomasjinlo, unfortunately not, it’s been a while. You could probably simulate it with a test in which you mock a server response. Problem are these lines: https://github.com/hoodiehq/hoodie-account-client/blob/9b22171/utils/request.js#L26-L29
We don’t check if response.body.errors
actually exists.
in
utils/request.js
, we expectresponse.body
to be an object with aerrors
array property. In some circumstances there might be an issue with that, and we should add a check ifresponse.body.errors
exists and if it doesn’t,response.body
can be a string likeNot found: /hoodie/account/api/session/account
.