Open a26nine opened 2 weeks ago
Is there possibly something else with your setup that may be different? cURL should be supported here
Is there possibly something else with your setup that may be different? cURL should be supported here
I don't think or am aware of anything else that would be different here. You can see the node config in the OP. Plus, other Beacon API methods seem to work without any issues.
Could you try using any other tool outside of curl to see if you're able to query, the flush is required for event stream endpoints
Could you try using any other tool outside of curl to see if you're able to query, the flush is required for event stream endpoints
websocat ws://localhost:3500/eth/v1/events?topics=head
---
websocat: WebSocketError: WebSocketError: Received unexpected status code (500 Internal Server Error)
websocat: error running
#!/usr/bin/python3
import requests
import sys
try:
response = requests.get(
'http://localhost:3500/eth/v1/events?topics=head',
headers={
'Accept': 'text/event-stream',
'Cache-Control': 'no-cache'
},
stream=True,
timeout=30
)
print(f"Status: {response.status_code}")
print(f"Headers: {dict(response.headers)}")
for line in response.iter_lines():
if line:
print(line.decode('utf-8'))
sys.stdout.flush()
except Exception as e:
print(f"Error: {e}")
---
Status: 500
Headers: {'Content-Length': '132', 'Content-Type': 'application/json', 'Vary': 'Origin', 'Date': 'Tue, 05 Nov 2024 17:54:16 GMT'}
{"message":"beacon node misconfiguration: http stack may not support required response handling features, like flushing","code":500}
root@vana-mainnet-archive-ora-iad-a00:~#
Is there any configuration flag that may be causing or can help with this issue?
Where does this error come from? "beacon node misconfiguration" is not a string found in our repo.
@prestonvanloon This error was in v5.1.2, but due to recent changes from kasey it shouldn't be there anymore https://github.com/prysmaticlabs/prysm/blob/944f94a9bf6cbd19699b319917499fd7262e2f73/beacon-chain/rpc/eth/events/events.go#L164
still... both of us were testing with curl and haven't run into the above error, which should be that the client is unable to call the flush function on the writer.
Describe the bug
When trying to subscribe to events with Prysm
v5.1.2
, the node throwsmisconfiguration error
.Flags
Execution Client: Geth
v1.14.11
The node is syncing fine and responds to other methods without any issues.
Has this worked before in a previous version?
No response
🔬 Minimal Reproduction
v5.1.2
(with the above flags).curl "http://localhost:3500/eth/v1/events?topics=head" -H "Accept: text/event-stream"
Error
Platform(s)
Linux (x86)
What version of Prysm are you running? (Which release)
v5.1.2
Anything else relevant (validator index / public key)?
No response