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
Network error: Cannot read property 'headers' of undefined #8
Comments
@AdamYee ? Just tried updating apollo-upload-examples to v4 and it immediately errors. |
Hey guys, I was able to reproduce by removing @jaydenseric so the changes to the lines you referenced are still needed, but they need to pass in an empty object when there isn't an const networkInterface = createNetworkInterface({
uri: '/graphql'
}); The fix should look something like this in the network-interface.js and batch-network-interface.js files: return _HTTPFetchNetworkInte.prototype.fetchFromRemoteEndpoint.call(this, { request: request, options: options.opts || {} }); In the meantime, if people need a quick workaround they can create the network interface with an empty const networkInterface = createNetworkInterface({
uri: '/graphql',
opts: {} // just to get around the 4.0.0 bug
}); 😃 |
This seems to be ok now on I am getting paranoid every time I publish a new release, it's so hard to manually test everything. We really need some unit tests! |
Just released v4.0.1, please let me know if everything is happy chappy 🙏 |
@jaydenseric updated to 4.0.1 and all is well. |
Yep, thanks a lot! |
On upgrading from 3.0.3 to 4.0.0 I get the following error:
I think it should be passing
options
through towindow.fetch
as well asopts
?The text was updated successfully, but these errors were encountered: