Trouble accessing my FastAPI server hosted on Replit

Problem description:
I’m having trouble accessing my FastAPI server hosted on Replit. The server is running and I can access it using curl http://localhost:8080/help from the Replit console, but when I try to access it using the public URL https://coderunner-plugin.haseebmir.repl.co/help, it doesn’t work.

Expected behavior:
I expect to be able to access my server using the public URL https://coderunner-plugin.haseebmir.repl.co/help.

Actual behavior:
When I try to access my server using the public URL https://coderunner-plugin.haseebmir.repl.co/help, it doesn’t work.

Steps to reproduce:

  1. Open my Repl in the Replit editor: https://replit.com/@HaseebMir/CodeRunner-Plugin
  2. Click the “Run” button to start the server.
  3. Try to access the server using the public URL https://coderunner-plugin.haseebmir.repl.co/help.

Bug appears at this link:
https://coderunner-plugin.haseebmir.repl.co/help

Browser/OS/Device:
WebBased/Chrome/Edge

Can anyone help me figure out what’s going wrong?

Thanks in advance!

Fixed it by Switching server location to North America.

2 Likes

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