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

beta.pybricks.com fails to load #689

Closed
dlech opened this issue Jul 28, 2022 · 6 comments
Closed

beta.pybricks.com fails to load #689

dlech opened this issue Jul 28, 2022 · 6 comments
Assignees
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application

Comments

@dlech
Copy link
Member

dlech commented Jul 28, 2022

Describe the bug
With the update today, https://beta.pybricks.com shows a blank page.

This only happens if you have visited the site previously.

The console log shows the following error error:

Failed to load resource: the server responded with a status of 404 () main.01b44ba1.js:1  

Woraround

Refresh the page with CTRL+SHIFT+R (CMD+SHIFT+R on Mac).

Expected behavior
Pybricks Beta should not be blank and should notify that there is an updated.

Screenshots
image

@dlech dlech added bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application labels Jul 28, 2022
@dlech
Copy link
Member Author

dlech commented Jul 28, 2022

I think the bug is actually with the previous releases - not something new introduced in this release (and possibly the same bug as #686). The 01b44ba1 hash is actually from the v2.0.0-beta.1 release so that must have been the last version of Pybricks Beta I used on the computer where I captured the error message.

There is a line in the webpack config (inherited from Create React App) that specifically excludes this file:

https://github.com/pybricks/pybricks-code/blob/cb30f00bbd74b67a16dc16a818ca0a9d5c9eb1a0/config/webpack.config.js#L720

Will need to dig further.

@dlech
Copy link
Member Author

dlech commented Jul 28, 2022

Looks like the problem was inadvertently introduced in pybricks/pybricks-code@9cdd102.

dlech added a commit to pybricks/pybricks-code that referenced this issue Jul 28, 2022
This caused updates to not work if main.js was not in the browser
cache since it was being excluded from the service worker.

Issue: pybricks/support#689
@dlech
Copy link
Member Author

dlech commented Jul 28, 2022

This has been fixed in v3.2.0b3 (Pybricks Beta v2.0.0-beta.5).

But I'm going to leave the issue open for a while since people who have used older versions of Pybricks Beta will still experience this bug when upgrading to the fixed version (because the old buggy version is already on their computer).

@laurensvalk
Copy link
Member

Not sure it is the same, but maybe this was also happening on Pybricks Code. See https://bricks.stackexchange.com/questions/17234/pybricks-on-android-tablet/17322#17322

@dlech
Copy link
Member Author

dlech commented Jul 30, 2022

This particular bug has only been released on https://beta.pybricks.com, not https://code.pybricks.com like mentioned in the stackexchange question. But the same workaround is probably still applicable.

@dlech dlech self-assigned this Aug 10, 2022
@dlech
Copy link
Member Author

dlech commented Nov 18, 2022

I think it has been long enough now that we can close the issue.

@dlech dlech closed this as completed Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application
Projects
None yet
Development

No branches or pull requests

2 participants