Closed dakkafex closed 4 years ago
Hm.. all depends how your server handles errors..It might be that you have some global error handler that eats
errors some specific way. Docs assumes that you do not have any handler and this usually means than any throw will produce 500 and print error object including status value we attach to it.
Also it might be some regression issue, but after quick check on example in the repo I see errors comming back.
To help I will need to reproduce this I will need to know:
Hi @dakkafex
I managed to replicate problem by adding error middleware to express that suppresses errors. Please review your middleware
keycloak is the only middleware im using.
server.express.use(keycloak.middleware())
I will need to know: version of the lib you are using keycloak version
You are getting the right message but code added to error is being removed/ignored.
Codes were added in 0.4.0
0.5.0 and 10.0.2
Ok. I cannot reproduce this issue. Automatic tests and example app returns right data. That is version 0.6.0
updated it to 0.6.0 and still not getting any error codes
@dakkafex would you be able to reproduce this in the example app in repository? I would love to help and there must be something missing on my side that I simply cannot see.
Or would you be able to put console log in this method and also log error
I have tried to replicate this again today.
We are missing info - I suspect this is due to using a different version of the Apollo/GraphQL-tools but could not replicate this problem
No error codes are being sent on auth error, this is all im getting