fullstack-tutorial icon indicating copy to clipboard operation
fullstack-tutorial copied to clipboard

[Docs] Issue when publishing schema

Open fernando-sendMail opened this issue 6 years ago • 4 comments

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 the ENGINE_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?

fernando-sendMail avatar Nov 25 '18 23:11 fernando-sendMail

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.

agur avatar Apr 29 '19 22:04 agur

I had the same error as you. I figured out I was in the wrong directory

GhassenRjab avatar May 11 '19 12:05 GhassenRjab

ha ha.. thanks @GhassenRjab - I was in the wrong directory also!! D'oh!

iancrowther avatar Aug 02 '19 10:08 iancrowther

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.

JWTappert avatar Feb 11 '20 04:02 JWTappert