Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "schema input must have at least one of “sdl” or “hash”" when publishing #724

Closed
bennyKY opened this issue Aug 11, 2021 · 1 comment · Fixed by #726
Closed
Assignees
Labels
Milestone

Comments

@bennyKY
Copy link

bennyKY commented Aug 11, 2021

Description

running publish command with schema parameter:

pnpx -p @apollo/rover rover subgraph publish application-server@stagingBackoffice --name=matched-propertiesBackoffice --routing-url=http://matched-properties-ts-nyc:6002/ --schema=src/server/federation/backoffice/common.graphql 

we are getting this error:
“error: Partial schema input must have at least one of “sdl” or “hash””.
It doesn't have error code (like other errors).

Environment

Rover Info:
Version: 0.1.10
Install Location: /Users/bennykachanovsky/.rover/bin/rover
OS: Mac OS 11.4.0 [64-bit]
Shell: /usr/local/bin/bash

@bennyKY bennyKY added bug 🐞 triage issues and PRs that need to be triaged labels Aug 11, 2021
@EverlastingBugstopper
Copy link
Contributor

Thanks for the report @bennyKY - it looks to me like this occurs whenever the proposed schema file is completely empty. We can definitely have a better error message here, but for now I'd recommend investigating your src/srver/federation/backoffice/common.graphql file and ensure it actually contains a schema prior to running this command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants