-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
NetworkError: response.text is not a function #3051
Comments
Alright. I made the final edit for the initial post. For me, the problem is solved, but only because I reverted to old versions. Anyone who wants to be on the bleeding edge of all things Apollo will probably run into this issue as well. The bug must be in one of those packages above that has a higher version number than what I had on my local machine, I suspect |
Getting the same issue as well, not sure what is causing it. However the versions that worked for me
Also, removed custom fetch for the apollo link |
I'm sorry that my story won't help OP but might assist those with this error experiencing issues trying to write a custom fetch for Apollo Link. I was having the same error
|
look at this: https://developer.mozilla.org/en-US/docs/Web/API/Body/text.
the error occurs at |
Maybe it will help someone so in my case it was matter of downgrading
|
It sounds like the common thread here is |
Upgrading |
I'm also still getting this error. Just tried to upgrade all apollo related packages to the latest versions (according to |
Today, I ran an innocent little deployment, like every day, and suddenly my website was gone (thank god, staging server). All my apollo requests during SSR would return with the above mentioned NetworkError.
Here is what I had in my package.json:
After four hours of frustratingly digging through nginx & uwsgi logs and handcrafting gql requests with curl, I dawned on me that maybe my webserver and my backend are fine and somehow my
node_modules
environment might be messed up.So I compared my local packages to the ones on the server via
yarn list
:Here is what I had on my local machine, which works:
And here is what I had on the server, which does not work:
To fix this:
I simply pinned all the working versions in my package.json to the exact versions (I added the packages that were not in my package.json and I removed the
^
from all version numbers). Then I wipednode_modules
on the server and made a new deployment.What I don't understand:
Both, on my MacBook and on the Ubuntu server I have:
How can it be that
yarn install
installs packages with vastly different version numbers on both machines? This is the fist time I ended up in dependency hell like this, I never had to remove the^
from a package.json, until now.The text was updated successfully, but these errors were encountered: