ERROR failed to read supergraph schema reason=stream did not contain valid UTF-8
Bump into the error while trying to run apollo router.
Anonymous usage data is gathered to inform Apollo product development. See https://go.apollo.dev/o/privacy for details. 2026-07-16T09:46:43.188554Z ERROR failed to read supergraph schema reason=stream did not contain valid UTF-8 2026-07-16T09:46:43.234786Z INFO state machine transitioned event="NoMoreSchema" state=Errored previous_state="Startup" 2026-07-16T09:46:43.235259Z INFO stopped 2026-07-16T09:46:43.235740Z ERROR no valid schema was supplied no valid schema was supplied
To resolve this error
rover supergraph compose --config ./supergraph.yaml | Out-File -Encoding utf8 supergraph.graphql
and then re--run router
c:\tools\router --config router.yaml --supergraph supergraph.graphql
Comments