fullstack-tutorial
fullstack-tutorial copied to clipboard
[Docs] Issue when publishing schema
Hey there! For some reason when trying to publish the schema I was getting this error:
✔ Loading Apollo Project
✖ Uploading service to Engine
→ No service found to link to Engine
Error: No service found to link to Engine
at Task.task (~/.npm/_npx/32532/lib/node_modules/apollo/lib/commands/service/push.js:17:31)
at Promise.resolve.then.then.skipped (~/.npm/_npx/32532/lib/node_modules/apollo/node_modules/listr/lib/task.js:167:30)
at <anonymous>
This is what I did, and didn't work:
- Had my
.env
file with theENGINE_API_KEY
set. - Tried removing the
sevice:
prefix from the value of the variable - Tried restarting the server
- Tried running
npx apollo service:check && npx apollo service:push
from the/server
folder - Double and tripled checked the API key
Finally I gave up and had to type the parameters directly on the service:push
command.
Is this only my issue?
Any news on this one?
I kept checking, ensured all the files were in the right place, as it's not always clear where they go if one follows a manual tutorial to set things up. My suggestion if you got stuck - is to compare your project to another "good known one".
However, often the error messages given were not descriptive and did not give the right direction. That may be a room for improvement.
I had the same error as you. I figured out I was in the wrong directory
ha ha.. thanks @GhassenRjab - I was in the wrong directory also!! D'oh!
I was getting the same error as you as well and I made sure I was in the correct directory and everything.
I fixed the issue by closing my terminals in VS code and using a fresh iterm. Deploying the service worked using the commands from the documentation.