apollographql / apollographql/apollo-tooling
Cannot deploy service to Engine because of Unable to find APOLLO_KEY
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
**Intended outcome:**
Deploy latest version of a service's schema to Apollo Engine.
**Actual outcome:**
At the validating schema phase, I keep receiving ```Unable to find APOLLO_KEY``` error.
**How to reproduce the issue:**
I am using Apollo CLI to 2.27.4. I am on OSX and running the command in a folder where at the root I have both a .env file and a apollo.config.js file.
The apollo.config.js file looks like this:
```
module.exports = {
service: {
name: "APP_NAME",
},
};
```
And the .env file looks like this:
```APOLLO_KEY=service:XXXX```
Currently, I am running the following command: ```apollo service:check --endpoint="XXXX"```
I had used this code prior to deploy without issues. I upgraded to the latest version of the CLI today which started behaving problematically.
**Versions**
2.27.4.
Contributor guide
Research direction
Reproduce the failure with Apollo CLI 2.27.4 using the shown apollo service:check --endpoint command, .env file, and apollo.config.js. Trace how the CLI loads APOLLO_KEY during schema validation and compare the behavior with the previously working version. Done means the command reads the key and completes validation without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100