http.request in my current project fails to get the data served from my custom dev webserver which is hosted in a non-deployment dev environment.
The URL is accessible publicly and works in browsers (format: “uuid.picard.replit.dev/latestCommit” but with a full length uuid8 instead of “uuid”)
Despite being accessible in browsers and from cURL, Defold http.request doesn’t seem to be able to access it.
The specific error is:
ERROR:SCRIPT: Unable to create HTTP connection to 'https://cef0fd87-0f47-49e0-95a4-f9f20d3a59b0-00-28v4fhjrdk6ej.picard.replit.dev/latestCommit.txt'. No route to host?
(do note that if you try to manually access this url, it will only work while the repl is activated which is when I am working on it, otherwise the stable api url is used)
To produce yourself:
-Make free account on repl.it (just email, pw, username asked)
-Make a new Repl in any programming language of your choice and write a basic webserver (not default static content serving for HTML-specific repls, so all non-HTML template repls should reflect the same problem)
-Make the webserver serve content that is http code: 200, mimeType: “text/plain”, dataformat: utf8
-Open the web preview in replit
This will open a new tab with a temporary development url hosted in GCP. The URL is valid and accessible online until you exit the development environment tab (it is NOT a localhost server).
Trying to send http.request GET to this URL gives me the error I said before
Any and all insights appreciated! If anyone doesn’t want to go through the pain of making a server then DM me on any platform and I can arrange a time to host it for you.