tiangolo / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login error in Dashboard

lxbxinwei opened this issue · 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

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 have got the same issue while running it in the local environment.

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

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

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

Thanks for reporting back!