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

Subscriptions WebSocket closes socket right after accepting request #4165

Closed
BerkliumBirb opened this issue Nov 11, 2022 · 2 comments
Closed
Labels

Comments

@BerkliumBirb
Copy link

Do you want to request a feature or report a bug?

It's a Bug

What is the current behavior?

When I connect to server using wscat it just halts the socket and wscat reports "404". But is I try to send a simple http request (which is a part of ws handshake process) socket halts with no response:

root@32c3b8cb3c23:/# curl -vv http://localhost:8001/subgraphs/name/kittycatdao/zksync
* Expire in 0 ms for 6 (transfer 0x55896a3be0f0)
* Expire in 1 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 0 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 2 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 0 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 1 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 4 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 1 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 2 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 8 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 3 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 3 ms for 1 (transfer 0x55896a3be0f0)
* Expire in 4 ms for 1 (transfer 0x55896a3be0f0)
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Expire in 149993 ms for 3 (transfer 0x55896a3be0f0)
* Expire in 200 ms for 4 (transfer 0x55896a3be0f0)
* Connected to localhost (127.0.0.1) port 8001 (#0)
> GET /subgraphs/name/dao/zksync HTTP/1.1
> Host: localhost:8001
> User-Agent: curl/7.64.0
> Accept: */*
> 
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  • Deploy graph node in docker container
  • Deploy subgraph
  • Connect to node docker container using docker exec
  • Install nodejs and curl
  • run npx wscat -c ws://localhost:8001/subgraph/<deployed-subgraph> or curl http://localhost:8001/subrgaph/<deployed-subgraph>

What is the expected behavior?

Server send HTTP 101 Switch Protocols response at least.

@github-actions
Copy link

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.

@github-actions github-actions bot added the Stale label May 11, 2023
@lutter
Copy link
Collaborator

lutter commented Apr 6, 2025

Subscriptions are no longer supported

@lutter lutter closed this as completed Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants