full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Login error in Dashboard

Open lxbxinwei opened this issue 1 year ago • 3 comments

Hello, @tiangolo

I follow all steps in full-stack-fastapi-template (latest),the code run in a remote machine, and I login from another machine.

The problem is, I can go to ip:8090, ip:8080, ip/docs, ip/redoc. However, I can not go to ip, the main page of the project. After I enter email and password, it just circle all the time, did not forward.

Is there anything I did wrong?

Best regards.

Snipaste_2024-03-15_16-29-44

lxbxinwei avatar Mar 15 '24 08:03 lxbxinwei

Could you please describe the error message you're seeing in the terminal or any other location? Providing details about the error will help in diagnosing and resolving the issue effectively.

SaurabhXRT avatar Mar 15 '24 18:03 SaurabhXRT

I have got the same issue while running it in the local environment.

Screenshot from 2024-03-16 12-59-32

parthjoshi90 avatar Mar 16 '24 07:03 parthjoshi90

Could you please describe the error message you're seeing in the terminal or any other location? Providing details about the error will help in diagnosing and resolving the issue effectively.

I think I know the problem, it seems like network error, but I have no idea to fix it.

When I try login on the server side, via localhost, everything works well.

If I login on the remote device via ip, it can not work.

and the error in console(remote device) is👇 (look at the red box) Pasted image 20240318094806

lxbxinwei avatar Mar 18 '24 02:03 lxbxinwei

I delete the frontend images, and docker compose -f docker-compose.yml up -d again, everything works

lxbxinwei avatar Mar 21 '24 06:03 lxbxinwei

Thanks for reporting back!

tiangolo avatar Mar 21 '24 21:03 tiangolo