-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Timeouts cause Playground Communication: Cannot read properties of undefined (reading 'trim')
#2477
Comments
@Alx-Lai, would you be interested in trying to improve this? |
Sure! I can take a look tomorrow |
The behavior in 1. https://play.rust-lang.org/ vs 2. comprehensive-rust with following program. fn main() {
loop {}
}
|
Hey @Alx-Lai, thanks for testing this so nicely! I've noticed that the official Playground uses a WebSocket based system now — and the endpoint we use is a simpler one-shot approach. I would like to see us migrate to the WebSocket eventually, but for now, I think we should just wrap the code in a bit of error handling to avoid showing the ugly |
It used to have a ugly error message shows that "Playground Communication: Cannot read properties of undefined (reading 'trim')", which is due to the fact that the response lacks stdout attr. Issue: google#2477 Signed-off-by: Alx-Lai <[email protected]>
It used to have a ugly error message shows that "Playground Communication: Cannot read properties of undefined (reading 'trim')", which is due to the fact that the response lacks stdout attr. Issue: #2477 Signed-off-by: Alx-Lai <[email protected]>
If a Playground program times out (typically due to an infinite loop), we see a strange error message:
We should see if we can handle this better.
The text was updated successfully, but these errors were encountered: