I’m trying to access my Raspberry Pi’s web page remotely, but the page can’t load data from the JSON file.
When I access it from the same local network, everything works fine.
I’ve tried changing the URL inside the code, but it still doesn’t work.
When I use HTTPS, it returns “404 Not Found.”
Does anyone know what might be causing this issue or how to fix it?
I would check that your endpoint saved for the remote.it service is the correct url. It should be 127.0.0.1 with the correct port you are serving it on and make sure that you have the SSL protocol correct. For example, if it is running on port 8080 but you do not have SSL. i.e. you get to in on your LAN as something like http://192.168.10.109:8080, then you would set it up in remote.it as http://127.0.0.1:8080 (note no https and it is 127.0.0.1 because the service is running local to the raspberry pi).
If you are still having issues, open the developer tools in your browser to find the error. It is possible that your webserver is having a CORS issue or some other setting that needs to be fixed.
I am having a similar issue. I am using Python/Flask. The GET request is received by the Raspberry PI, but I never get corresponding Response. This behavior happens while using the Remote.IT proxy. It works fine when accessing locally. I opened developer tool and navigated to Networks tab an saw a “content_length_mismatch” error. Since my request work fine locally, I am assuming that the issue is on the Remote.IT side. Please help shine a light on this. Thanks