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

422 Over Nginx and WebSocket subscriptions transport #3572

Open
fallenmanrisesup opened this issue Mar 4, 2025 · 0 comments
Open

422 Over Nginx and WebSocket subscriptions transport #3572

fallenmanrisesup opened this issue Mar 4, 2025 · 0 comments

Comments

@fallenmanrisesup
Copy link

go 1.22
Packages:

	github.com/99designs/gqlgen v0.17.46
	github.com/gorilla/websocket v1.5.3
	github.com/vektah/gqlparser v1.3.1
	github.com/vektah/gqlparser/v2 v2.5.23

Client lib - apollo + subscriptions-transport-ws

Without Nginx it worked fine, but in production environment I receive such logs:

[6957]: time="2025-03-04T11:58:23+03:00" level=warning msg="GQL ERR no operation provided"
[6957]: time="2025-03-04T11:58:23+03:00" level=warning msg="Response Status: 422"
[6957]: time="2025-03-04T11:58:23+03:00" level=warning msg="Response Body: {\"errors\":[{\"message\":\"no operation provided\",\"extensions\":{\"code\":\"GRAPHQL_VALIDATION_FAILED\"}}],\"data\":null}"

Even with wscat tool I can establish connections without a problem but only directly to golang server.

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

No branches or pull requests

1 participant