-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[patch] v0.28 rw dev
results in API Apollo Server Node "Error: called start() with surprising state"
#2127
Comments
Confirming I have reproduced this locally. However, I am only receiving a WARNING. My guess is that this is a Node.js <> Apollo Server version issue. I'm currently on Possible fix --> upgrading Apollo Server package version in We didn't see this in CI because we run against Node.js v14 and it's a Warning, not an error.
|
Upgrading to apollo-server-lambda@2.22.1 did not resolve. But we should do this as well. |
I've done the tutorial. The app runs fine locally but the deployed app fails with GraphQL calls - a 502 response.
When running locally I get this is the
|
rw dev
results in API Apollo Server Node "Error: called start() with surprising state"rw dev
results in API Apollo Server Node "Error: called start() with surprising state"
here's my the output @thedavidprice yarn run v1.22.10
$ /Users/esteban/files/my-redwood-app/node_modules/.bin/redwood info
System:
OS: macOS 11.2.3
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.1.0 - /var/folders/2w/rf6n92bn5b55yt05wx0x0htm0000gn/T/yarn--1616821424418-0.5146509066665363/node
Yarn: 1.22.10 - /var/folders/2w/rf6n92bn5b55yt05wx0x0htm0000gn/T/yarn--1616821424418-0.5146509066665363/yarn
Databases:
SQLite: 3.32.3 - /usr/bin/sqlite3
Browsers:
Chrome: 89.0.4389.90
Firefox: 78.0.1
Safari: 14.0.3
npmPackages:
@redwoodjs/core: ^0.28.0 => 0.28.0
✨ Done in 2.80s. |
@Tobbe yes i can confirm when you try to hit the graphql endpoint it fails too. this is the error: web | [HPM] Error occurred while trying to proxy request /graphql from localhost:8910 to http://[::1]:8911 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors) |
I pinned the It appears that they attempted to fix a bug in
But instead... they ended up breaking things. |
I've reported this over here (apollographql/apollo-server#5066), but I think the root cause of why we didn't pick this up is because we do not ship a yarn.lock file anymore: |
I'll proceed to add a |
@thedavidprice The exact same issue occurs even when all |
@peterp I believe apollo-server-core@2.22.2 should be compatible with the older version of apollo-server-lambda, so you should be able to remove the resolution override now (I don't think npm/yarn will choose to install the broken 2.22.0/2.22.1 versions now that 2.22.2 is out). I also encourage you to upgrade apollo-server-lambda to v2.22.2; let me know if there's some reason that upgrade doesn't work! |
Thanks @glasser Peter has been focused on a different issue and it's now late for him. I'll dig into this now. Agreed about upgrading to v2.22.2 and can take that for a spin. |
PR here #2153 |
Originally posted by @esteban-url in #2120 (comment)
I'm running into the problem when spinning up a brand new app
$ yarn create redwood-app my-redwood-app
<- looks good$ cd my-redwood-app
$ yarn redwood dev
<- 💣complete output
so I tried the esbuild flag
$ yarn rw dev --esbuild
<- again it throws errorserror Command "rw-api-server-watch" not found.
complete output
so then i added as @peterp suggested
$ yarn workspace api add @redwoodjs/api-server
<- bunch of warning but otherwise it looks goodexcept it still errors out when running dev
yarn rw dev --esbuild
complete output
hope this helps☺️
The text was updated successfully, but these errors were encountered: