-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Issue #1260] Introducing support for GitHub Codespaces #1356
[Issue #1260] Introducing support for GitHub Codespaces #1356
Conversation
closes #1260 |
Nice will test this, thanks for taking this on! |
Support for DROP COLUMN was added in sqlite 3.35, but the devcontainer
That's why the test is failing. Let me try it with the
|
@rahulbagai do you have an example of a working app running in a codespace? when I try it, I can get the frontend to load, but it always fails to establish the websocket connection
|
@masenf Thanks for testing my changes! Unfortunately, I'm experiencing the same issue on my end as well. I couldn't find any recent changes in the repository that could help identify the problem. Is there any way I can check the server logs for more debugging? I'm fairly new to this repository, so any assistance would be greatly appreciated! |
@rahulbagai did you have it working "before" just wondering if there's some regression or if there is yet undiscovered changes needed to work in the codespaces environment. i tried toggling between public and private port visibility and it didn't seem to make a difference. kind of smells like some sort of "middle box" isn't correctly handling the websocket requests...although the hmr websocket for hot reload on port 3000 does seem to work without an issue. |
I had it working "before." I should have recorded a video or something to share for confirmation. Mind sharing your debugging steps? That way, I can give it a shot on my end too. Let's troubleshoot together! |
In the codespace terminal I'm running the following commands poetry install
poetry shell
mkdir /tmp/app
cd /tmp/app
reflex init
reflex run Small window pops up noting that port 3000 is open, so I click the Open Browser button and the frontend loads fine. Looking in the dev tools, it continually attempts to connect to The |
@masenf, thanks a bunch for the detailed troubleshooting steps! I managed to reproduce the steps on my end too. By the way, I've made some progress on debugging and figured out a few other things. Here's what I found during my testing:
I'm now diving into the ASGI API setup to see if there's anything else we need to enable for a successful WebSocket connection. Any insights you have would be greatly appreciated! Just a few other things that come to mind, which I'm looking forward to debugging:
|
Possibly related to #698 |
Rebased and extended in #2125, websockets are working now! 🎉 |
This PR implements support for Github codespaces in Reflex. The modifications involve updating the constants.py file to include a condition. When the project is loaded using Github codespaces, the API_URL will automatically be set to an HTTPS endpoint. This improvement ensures seamless integration and enhances security for users.
Platforms used for testing include:
One test is currently not passing, and it appears to be failing in the main branch as well. Do you have any thoughts or ideas on how to address this issue?
All Submissions:
Type of change
New Feature Submission:
Changes To Core Features:
After these steps, you're ready to open a pull request.