-
Notifications
You must be signed in to change notification settings - Fork 331
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
GraphQL handler: environment variables not working for endpoint for subscriptions/WebSocket calls #5296
Comments
@xmlking |
Thanks for letting me know. Will they this solution. |
I have the same problem with the mongoose handler and the
|
Seems that environment variables are super limited in where they can be applied to config. I also tried adding statsd plugin with
and getting the following error in the logs
|
I can hack a fix for the second problem (statsd plugin) in my case by doing a build, then doing a search and replace on the generated
but the mongoose host is required before the build and replacing the |
Turns out the above hack was unnecessary, since the underlying hot-shots package will try to use the DD_AGENT_HOST environment variable by default if no host was specified. So best to just not specify it like:
|
environment variables not working with GraphQL Handler endpoint when invoking subscriptions. I have to give real URL.
I even tried to provide
subscriptionsEndpoint
via environment variables without any luck.This is preventing us deploying to different environments without hardcoding endpoints...
Queries and Mutations works fine when setting GraphQL endpoint via environment variables.
Error
The text was updated successfully, but these errors were encountered: