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

Failures when running in a Codespace #1442

Closed
bjones1 opened this issue Mar 5, 2024 · 2 comments
Closed

Failures when running in a Codespace #1442

bjones1 opened this issue Mar 5, 2024 · 2 comments

Comments

@bjones1
Copy link

bjones1 commented Mar 5, 2024

Thanks for the great software! I've been using it for a while in one of my projects (the CodeChat system) and it works well!

Recently, however, I've noticed that running inside a Github Codespace using bottle causes failures -- pages don't load properly. In contrast, running python -m http.server does work. I created this repo to demonstrate the problem. To test it out, click on the green "Code" button, select the "Codespace" tab, the click on the green "Create codespace on main" button. After the Codespace boots up, run bash btest.sh to open a simple Bottle server.

Any ideas? Thanks for your help!

@defnull
Copy link
Member

defnull commented Sep 5, 2024

Works for me. Maybe this was fixed by CodeSpaces in the meantime, or you were bitten by the fact that the built-in development server is single-threaded and can only serve one request at a time. Use a more suitable server back-end (anything that speaks WSGI) to remove that limitation.

@defnull defnull closed this as completed Sep 5, 2024
@bjones1
Copy link
Author

bjones1 commented Sep 5, 2024

Thanks! I should have updated this issue -- I used CherryPy as a backend, which fixed the problem (most of the time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants