Replies: 2 comments 6 replies
-
/cc @jmartisk, @phillip-kruger |
Beta Was this translation helpful? Give feedback.
-
Hi, But yeah, if you're connecting to external services which actually do return different codes, then it might be useful to add that (option to find out the code) into the client. It's not possible now (the status code is ignored) so that would have to be implemented. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We're using the smallrye graphql dynamic client and when the graphql server responds with HTTP 401 we just get an empty Response.
Is it possible to get hold of the HTTP status code somehow ?
What is the best way to handle this situation ?
This is how the 401 reply from the graphql server looks like:
{
"fault": {
"code": 900709,
"message": "Invalid Credentials",
"description": "Access failure for API: /xxxxxx/1.0, version: 1.0 status: (900709) - Invalid Credentials. Make sure you have given the correct access token"
}
}
Beta Was this translation helpful? Give feedback.
All reactions