graphql-mesh
graphql-mesh copied to clipboard
Failing to fetch from Fastly
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
The GraphQL handler is failing to fetch from Amplience GraphQL, which seems to be hosted on Fastly. Fastly is responding with a 400 Bad request.
It seems related to the "Host" request header.
Is it possible for you to create a reproduction?
Difficult because I can not disclose the origin server. I was able to narrow down the problem to the Host header, using Postman.
The yaml file is pretty much out of the box, just the endpoint. No authorization needed.
I was able to make introspection work by using the source property pointing to a dump of the Amplience Schema. The runtime ( operations ) won't work though ( same 400 bad request ).
Is the problem the Host
header we send or something else? If us, you can pass a custom Host
header by using schemaHeaders
.