apollographql / apollographql/apollo-tooling

Apollo CLI download-schema command slow

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

Description

**Intended outcome:**

I am trying to download a schema from a federated graph from Apollo Studio with the Apollo CLI. In the past this worked as expected. But lately downloading the schema is extremely slow. When I run the command the Apollo CLI starts but there is no reaction within a couple of minutes, then after a while it finishes.

I am using the following command

apollo client:download-schema --variant=$APOLLO_SCHEMA_VARIANT --graph=$APOLLO_GRAPH_NAME --key=$APOLLO_KEY

The environment variables are all set.

**Actual outcome:**

No error. Not any message at all. The client hangs.

**How to reproduce the issue:**

**Versions**
apollo/2.33.4 darwin-x64 node-v12.22.1

Contributor guide

Open the contributing guide

Research direction

Start by running the reported apollo client:download-schema command with the listed Apollo CLI and Node versions against the federated graph setup. Trace the command's schema-download entry point to identify where it waits without output. Done means the command completes without the multi-minute hang and the relevant behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, node.js, typescript
Domain
api, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.