apollographql / apollographql/apollo-tooling

Error: value too long for type character(64) on "npx apollo service:push"

Open
#2,134 1 comment 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

### Expected result
schema should be published without error when attempting to publish schema using "npx apollo service:push"

### Actual result
npx apollo service:push
› Warning: [Deprecation warning] Setting the key via ENGINE_API_KEY is deprecated and will not be supported in future versions. Please use APOLLO_KEY instead.
✔ Loading Apollo Project
✔ Loading Apollo Project
✖ Uploading service to Apollo
**→ value too long for type character(64)
Error: value too long for type character(64)**

### Config file
apollo.config.js
```
module.exports = {
service: {
name:'nwahec-api',
endpoint: {
url: "http://localhost:3000/nw/playground"
}
}
};
```

**How to reproduce the issue:**

**Versions**
npx apollo --version
apollo/2.31.0 darwin-x64 node-v11.15.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `npx apollo service:push` with the shown `apollo.config.js` and Apollo CLI version 2.31.0, then trace the upload failure. Done means the configured schema publishes without the `value too long for type character(64)` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.