You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error masking and internals leaking in error handling #209
original error is lost and traceback is not reported, so it becomes hard to debug;
potentially sensitive information is leaked to client via error message.
I believe the the right behaviour would be to catch and report to client specific exceptions only (GraphQLError and subclasses?) while propagating the rest.
This has been bugging me a lot, since I want to raise and catch my own Exception subclasses for some occasions in my app. This library currently makes this impossible, without changing the code in the library itself too.
Using except Exception as e has pretty much never been a good idea :/ But looking through the code, I see it pop up in a lot of places, so I wasn't sure where to start. @ods I saw that you changed a lot (maybe all) of it in your linked commit f81ca08. Did this fix it completely for you?
Yes, it did so far. There are actually two commits in my fork: second is to silence annoying noise in logs. I'm going to issue a pull request after some time of using it in our project.
Activity
Separate errors to report to user from unexpected exception (issue gr…
cobalamin commentedon Oct 7, 2018
This has been bugging me a lot, since I want to raise and catch my own Exception subclasses for some occasions in my app. This library currently makes this impossible, without changing the code in the library itself too.
Using
except Exception as ehas pretty much never been a good idea :/ But looking through the code, I see it pop up in a lot of places, so I wasn't sure where to start. @ods I saw that you changed a lot (maybe all) of it in your linked commitf81ca08. Did this fix it completely for you?ods commentedon Oct 8, 2018
Yes, it did so far. There are actually two commits in my fork: second is to silence annoying noise in logs. I'm going to issue a pull request after some time of using it in our project.
ods commentedon Oct 17, 2018
Pull request: #211
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…
Separate errors to report to user from unexpected exception (issue gr…