Can not sign in with tutor dev start command

Hi friends,

I faced such type issue,

While I start the server with tutor local run command the signup and sign-in works properly I can sign in,

But when I am running up the server with tutor dev run the user can not sign in it redirects the user to the login page again,

I see a call of API with 401 status in network tap

http://local.overhang.io:8000/enterprise/api/v1/enterprise-learner/?username={the username}

I also reviewed logs and its result says the user is none :

2022-01-14 13:48:44,091 INFO 21 [tracking] [user None] [ip 172.23.0.1] logger.py:41 - {“name”: “/favicon.ico”, “context”: {“user_id”: null, “path”: “/favicon.ico”, “course_id”: “”, “org_id”: “”, “enterprise_uuid”: “”}, “username”: “”, “session”: “”, “ip”: “172.23.0.1”, “agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36”, “host”: “local.overhang.io:8000”, “referer”: “http://local.overhang.io:8000/enterprise/api/v1/enterprise-learner/?username=mshukurlu”, “accept_language”: “en-US,en;q=0.9,ru;q=0.8”, “event”: “{“GET”: {}, “POST”: {}}”, “time”: “2022-01-14T13:48:44.090862+00:00”, “event_type”: “/favicon.ico”, “event_source”: “server”, “page”: null}

How can I handle this issue?.

I want to emphisize, I am testing it in a fresh installation.

tutor, version 13.1.0

Can you please describe more precisely how you are trying to login? It would really help if you included screenshots.

please look at this video - edx - tutor dev start - login issue, demonstrate for tutor community - YouTube login works with tutor local start but not tutor dev start …
And this api return 401 status - http://local.overhang.io:8000/enterprise/api/v1/enterprise-learner/?username=test
This screenshoot containing user’s log…

1 Like

Thanks for the detailed report. I replicated the issue and proposed a fix here: fix: lms authenticaton in development by regisb · Pull Request #576 · overhangio/tutor · GitHub
I expect to merge this very quickly and publish a new release.

1 Like

Great, thank you very much!
Please, you can look at my other issue with updating the source of the remote server with docker, I replied to your answer with new challenge: Custom image not work on server - #6 by regis

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.