Http.request() doesn't work in Defold 1.2.153 (DEF-3943) (SOLVED)

I can’t use http.request() to download an intranet file and it works in version 1.2.152.

Hi, could you give us a little bit more information? What OS are you running on and can you tell us anything about the address you are requesting? Ipv4 / Ipv6? Is it 0.0.0.0? We do have made changes to the DNS resolve in the latest release so there might be an edge case that we are missing.

2 Likes

sorry, you can try this address: “http://120.92.174.142:10007/0_19_39/msg.pb

2 Likes

Thanks! I’ll take a look, what OS are you running on?

2 Likes

Win10

Thanks for the info, I’ve looked at the issue now and found the cause and working on a fix. I don’t know exactly when the fix will be released, but a workaround would be to either use the last version, or add a an entry for that IP address in your host file (https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/). I haven’t tried this approach, but it should work.

2 Likes

Solved in 1.2.154

1 Like

thanks.

2 Likes