Forums

API working on personal pc but won't respond when published

I have created an API. When I have it on my desktop personal pc, it responds very quickly and does what it is supposed to. I have uploaded it to my website, but now any request does not get a response. Is there like a firewall or something that needs to be done in settings?

Check your error and server logs for tracebacks or other messages that may help you to work out what the issue is.

I found the issue. The issue is that the code is getting stuck on reading and writing to the built in MySQL database on pythonanywhere. Is there any reason this could be? Like i said, it writes and reads perfectly fine on my local PC but on python anywhere it is obviously not doing this correctly.

What do you mean by "getting stuck" what is happening incorrectly?