apollographql / apollographql/apollo-tooling

Publishing / Checking Schema Issue

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

Description

Hello, our team started getting the following error when publishing schema:

$ apollo schema:publish --key="MY KEY WAS HERE" --endpoint=".tmp\introspection.json"

√ Loading Apollo config
√ Fetching current schema
× Publishing phunware-dev to Apollo Engine
→ Unexpected token < in JSON at position 1
» Error: Unexpected token < in JSON at position 1

We haven't change anything, since the last successful push command, and I have no clue how to debug what is the underlying issue. The schema seams fine perfectly formatted JSon.

Edit: We are using Apollo 1.9.2

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the Apollo CLI 1.9.2 `schema:publish` command with the shown endpoint and inspect the response producing the JSON parse error; done means identifying the cause and confirming a successful schema publish or a documented workaround.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.