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

validator client on rest mode has an inappropriate context deadline for events #13771

Merged
merged 9 commits into from
Mar 20, 2024

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented Mar 19, 2024

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Fixes the following error on the validator client while running with the flag --enable-beacon-rest-api

[2024-03-18 11:26:00] ERROR client: Event stream interrupted error=scanner failed: could not connect: context deadline exceeded (Client.Timeout or context cancellation while reading body)

Fixes the following issue to bubble up errors and kill the connection instead of just logging errors continuously

[2024-03-18 11:07:25] ERROR Could not write to response writer error=write tcp 127.0.0.1:3500->127.0.0.1:59590: write: broken pipe

Which issues(s) does this PR fix?

Fixes #13763

Other notes for review

@james-prysm james-prysm added Bug Something isn't working API Api related tasks Validator Client labels Mar 19, 2024
@james-prysm james-prysm requested a review from a team as a code owner March 19, 2024 20:11
Comment on lines 109 to 112
for {
if ok := scanner.Scan(); !ok {
break
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think so anymore I think I'll revert this

rkapka
rkapka previously approved these changes Mar 20, 2024
@rkapka rkapka dismissed their stale review March 20, 2024 09:54

need to think

@james-prysm james-prysm added this pull request to the merge queue Mar 20, 2024
Merged via the queue into develop with commit e243f04 Mar 20, 2024
16 of 17 checks passed
@james-prysm james-prysm deleted the event-endpoint-rest-errors branch March 20, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks Bug Something isn't working Validator Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validator client: Regular Event stream interrupted error
4 participants