apollographql / apollographql/apollo-tooling

Downloading scheme.json fails with specific command usage

Open
#844 10 comments 14 reactions 1 assignee Claimed by @JakeDawkins View on GitHub
:hammer: cli 🐞 bug
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

Is it expected behavior to fail downloading `scheme.json` depending on the order of the options?

```
// Success
apollo schema:download --endpoint= /schema.json --header=
✔ Loading Apollo Project
✔ Saving schema to /schema.json

// Failed
apollo schema:download --endpoint= --header= /schema.json
✔ Loading Apollo Project
✖ Saving schema to /schema.json
→ Header name must be a valid HTTP Token [""]
TypeError: Header name must be a valid HTTP Token [""]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.