corona icon indicating copy to clipboard operation
corona copied to clipboard

[Android]: network.request fails with query string in URL

Open mdsandell opened this issue 5 years ago • 0 comments

Describe the bug This is in regards to https://forums.solar2d.com/t/bug-network-request-not-accepting-queries-in-the-url-when-running-on-android/339855/56. On Android only (an actual Android device or Android emulator), if you use a GET network.request to download a file with a query string in the URL, the request fails with the error: "no protocol." This works fine in the Corona simulator and on iOS devices.

To Reproduce Steps to reproduce the behavior:

  1. Call network.request to download a file from a URL like https://www.dropbox.com/s/a8o31p2padwr9zk/versions.json?dl=1, where the URL has a query string such as ?dl=1 at the end.

Target platform and where build was made:

  • Device: Android (personally tested on BlueStacks emulator on MacBook Pro but had reports from actual Android users)
  • Last tested build with Corona 2020.3621

Additional context Based on the forum, this has been an issue since at least June 2016. I've noticed it myself for a year or so but never had a chance to narrow it down in my project until now.

Debug.zip

mdsandell avatar Dec 08 '20 03:12 mdsandell