Skip to content
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

apollo-link-batch-http throws errors when token is invalid. #6

Open
kapilpipaliya opened this issue Feb 12, 2018 · 1 comment
Open

Comments

@kapilpipaliya
Copy link

Hello when server return json instead of array apollo-link-batch-http throws error.
see : https://github.com/apollographql/apollo-fetch/blob/master/packages/apollo-fetch/src/apollo-fetch.ts
we have to fix the server to send array here:
render json: FieldError.error("Auth token is invalid")
thank you.

@kapilpipaliya
Copy link
Author

kapilpipaliya commented Feb 16, 2018

also we have to handle Token errors in client side (when token is expired), so user can re-login.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant