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] The --dev flag not working on Ubuntu 20.04 #332

Closed
dodolboks opened this issue Dec 9, 2022 · 1 comment
Closed

[BUG] The --dev flag not working on Ubuntu 20.04 #332

dodolboks opened this issue Dec 9, 2022 · 1 comment

Comments

@dodolboks
Copy link

Description
Hot reload don't work on my ubuntu 20.04. python 3.8.10. All test passed

Expected Behavior
`pytest -s integration_tests
======================================================== test session starts ========================================================
platform linux -- Python 3.8.10, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/dodolboks/riset/bispes/larisse
collected 27 items

integration_tests/test_base_url.py INFO:robyn:Starting server at 127.0.0.1:5000
INFO:robyn:Press Ctrl + C to stop

INFO:actix_server.builder:Starting 1 workers
INFO:actix_server.server:Actix runtime found; starting in Actix runtime
{'params': {}, 'queries': {}, 'headers': {'sec-ch-ua-platform': '"Linux"', 'cookie': '_ga=GA1.1.2066617731.1637828656; csrftoken=bm3sL50wTyV3DjdZJN63MS1BzA2DKyNE0ARc56k73fue1EjBryhmSz8i7eewh1Mj; ackee_ignore=1; sessionid=lxiolzctx6mcsd1w9ac6uh36rq19hol4; ajs_user_id=4dba4996-7d74-483e-99fe-b52c60368cb5; ajs_anonymous_id=c48c1c29-8113-48c1-a954-efcca399902a; PGADMIN_LANGUAGE=en; _hp2_id.319013487=%7B%22userId%22%3A%22219735062725766%22%2C%22pageviewId%22%3A%223621061341620674%22%2C%22sessionId%22%3A%224935340213719124%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D', 'sec-ch-ua-mobile': '?0', 'upgrade-insecure-requests': '1', 'accept-language': 'en-US,en;q=0.9,ja;q=0.8,id;q=0.7,it;q=0.6,ms;q=0.5,fr;q=0.4', 'accept-encoding': 'gzip, deflate, br', 'server': 'robyn', 'sec-fetch-site': 'none', 'connection': 'keep-alive', 'host': '127.0.0.1:5000', 'sec-ch-ua': '"Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"', 'sec-fetch-dest': 'document', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'sec-fetch-mode': 'navigate', 'sec-fetch-user': '?1', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'}}
Called 2 times {'params': {}, 'headers': {'sec-fetch-dest': 'document', 'accept-language': 'en-US,en;q=0.9,ja;q=0.8,id;q=0.7,it;q=0.6,ms;q=0.5,fr;q=0.4', 'sec-ch-ua-mobile': '?0', 'cookie': '_ga=GA1.1.2066617731.1637828656; csrftoken=bm3sL50wTyV3DjdZJN63MS1BzA2DKyNE0ARc56k73fue1EjBryhmSz8i7eewh1Mj; ackee_ignore=1; sessionid=lxiolzctx6mcsd1w9ac6uh36rq19hol4; ajs_user_id=4dba4996-7d74-483e-99fe-b52c60368cb5; ajs_anonymous_id=c48c1c29-8113-48c1-a954-efcca399902a; PGADMIN_LANGUAGE=en; _hp2_id.319013487=%7B%22userId%22%3A%22219735062725766%22%2C%22pageviewId%22%3A%223621061341620674%22%2C%22sessionId%22%3A%224935340213719124%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D', 'sec-fetch-user': '?1', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'sec-ch-ua': '"Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"', 'sec-ch-ua-platform': '"Linux"', 'accept-encoding': 'gzip, deflate, br', 'server': 'robyn', 'host': '127.0.0.1:5000', 'sec-fetch-site': 'none', 'sec-fetch-mode': 'navigate', 'upgrade-insecure-requests': '1', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36', 'connection': 'keep-alive'}, 'body': [], 'queries': {}}
{'params': {}, 'queries': {}, 'headers': {'sec-fetch-dest': 'document', 'accept-language': 'en-US,en;q=0.9,ja;q=0.8,id;q=0.7,it;q=0.6,ms;q=0.5,fr;q=0.4', 'sec-ch-ua-mobile': '?0', 'cookie': '_ga=GA1.1.2066617731.1637828656; csrftoken=bm3sL50wTyV3DjdZJN63MS1BzA2DKyNE0ARc56k73fue1EjBryhmSz8i7eewh1Mj; ackee_ignore=1; sessionid=lxiolzctx6mcsd1w9ac6uh36rq19hol4; ajs_user_id=4dba4996-7d74-483e-99fe-b52c60368cb5; ajs_anonymous_id=c48c1c29-8113-48c1-a954-efcca399902a; PGADMIN_LANGUAGE=en; _hp2_id.319013487=%7B%22userId%22%3A%22219735062725766%22%2C%22pageviewId%22%3A%223621061341620674%22%2C%22sessionId%22%3A%224935340213719124%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D', 'sec-fetch-user': '?1', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'sec-ch-ua': '"Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"', 'sec-ch-ua-platform': '"Linux"', 'accept-encoding': 'gzip, deflate, br', 'server': 'robyn', 'host': '127.0.0.1:5000', 'sec-fetch-site': 'none', 'sec-fetch-mode': 'navigate', 'upgrade-insecure-requests': '1', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36', 'connection': 'keep-alive'}}

`

Screenshots

Environment:

  • Host OS: Ubuntu 20.04
  • Browser: Google Chrome 108

[Optional] Additional Context


@dodolboks
Copy link
Author

it's work if added --log-level option. example python server.py --log-level=DEBUG --dev

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

1 participant