Comments (7)
@jaydenseric updated to 4.0.1 and all is well.
from apollo-upload-client.
@AdamYee ?
Just tried updating apollo-upload-examples to v4 and it immediately errors.
from apollo-upload-client.
I think this and this should not have been changed.
from apollo-upload-client.
Hey guys,
I was able to reproduce by removing opts
from the createNetworkInterface
config. Something that I didn't test because my app needs the cookies. Fetch queries (not mutations) will just fail silently, but when I attempt to upload a file I get the same error as @benhjames.
@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 opts
defined when creating the network interface like what most people probably do at first:
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 opts
:
const networkInterface = createNetworkInterface({
uri: '/graphql',
opts: {} // just to get around the 4.0.0 bug
});
😃
from apollo-upload-client.
This seems to be ok now on master
branch.
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!
from apollo-upload-client.
Just released v4.0.1, please let me know if everything is happy chappy 🙏
from apollo-upload-client.
Yep, thanks a lot!
from apollo-upload-client.
Related Issues (20)
- Clarification on exports/imports HOT 11
- latest version of the package failed to compile HOT 2
- Type Incompatibility in Apollo Client 3.8 HOT 2
- how to use version 18.0.0 with webpack and typescript HOT 3
- documentation update HOT 1
- crash with recommended ts parameters of release 18.0.0 HOT 4
- Module not found - after updating to 18.0.1 HOT 2
- Problem with Typescript HOT 2
- Document required TypeScript libs HOT 1
- How do you use ReactNativeFile in the latest version HOT 3
- Error with Vite HOT 1
- Failed to resolve entry for package "apollo-upload-client". HOT 2
- Support for @defer directive?
- Version 18 doesn't work with React Native HOT 2
- Module not found HOT 2
- Broken compatibility with HotChocolate 13.2 -> HOT 1
- Why js instead of ts? HOT 3
- Version 18 incompatible with Next.js HOT 3
- Support with @habx/apollo-multi-endpoint-link HOT 2
- Query on Compatibility with @apollo/client 3.9.0 and apollo-upload-client HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-upload-client.