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

[BUG] Default URL cannot be assigned #159

Closed
patchgamestudio opened this issue Feb 12, 2022 · 1 comment · Fixed by #160
Closed

[BUG] Default URL cannot be assigned #159

patchgamestudio opened this issue Feb 12, 2022 · 1 comment · Fixed by #160

Comments

@patchgamestudio
Copy link
Contributor

Description
When running app.start(), the default URL that Robyn assigns is 128.0.0.1, which appears to be a public IP in the Netherlands. This causes the application to throw the following error on Ubuntu 20.04 (WSL2):
OSError: Cannot assign requested address (os error 99)
Windows error:
OSError: The requested address is not valid in its context. (os error 10049)

Expected Behavior
Most likely, the default URL was meant to be 127.0.0.1 which is the universal address for localhost. When running app.start(url="127.0.0.1", port=5000) or app.start(url="0.0.0.0", port=5000) the OSError is not encountered. Robyn runs successfully on Ubuntu, but still encounters another known issue in Windows.

Environment:
Tested on both Windows 10 and Ubuntu 20.04 (WSL2 on Windows 10)
Robyn version: 0.12.0

@sansyrox
Copy link
Member

Thank you for this bug report. I see some typo crept in the package release. I will fix the code and start a better unit testing system in the next release(also hopefully tomorrow).

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants