99designs / 99designs/gqlgen

422 Over Nginx and WebSocket subscriptions transport

Đang mở
#3,572 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
10.8k
Fork
1.3k
Merge trung bình
2 ngày 36 phút
Pull request đã merge (30 ngày)
26

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.