-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ResponseCodeError API #2426
Comments
@AnthonyMDev Any chance this is still an open issue? :) I wouldn't mind taking it on. This would be my first time contributing to Apollo iOS though. |
I'd be happy to have you work on this @dfperry5! Thanks for offering to contribute. It actually looks like the data does contain a spec compliant The right way to do this would involve separating the JSON serialization interceptor from the parsing of the actual GraphQL result, but that is going to require a lot of restructuring of our network APIs that we are going to do in the 2.0 release. But in order to improve this for now without breaking things, I think the right approach would be for us to:
|
Awesome! @AnthonyMDev - I will give it a try! |
@AnthonyMDev - could you take a peak at this? https://github.com/apollographql/apollo-ios/compare/main...dfperry5:apollo-ios:Issue-2426-Improve-ResponseCodeError-API?expand=1 It's my first pass, I'm not overly thrilled with it :P Not sure if there is something more obvious I am missing. |
This looks like what we want right now. If you can just add another test that an error that doesn't have a GraphQLError returns Thanks so much for doing this! |
#3123 :) Thanks for guiding me! Let me know if there are any chances. |
This error is really difficult to parse information from. See #2419 for more info.
The text was updated successfully, but these errors were encountered: