How to download a basic resource from public URL?

Hi all, I have what seems to me to be a very basic question, but maybe I’m just missing something obvious.

For a proof of concept, I’d like to download a resource from a given URL. e.g. download a public-facing Google sheet.

from pico_lte.utils.status import Status
from pico_lte.core import PicoLTE
from pico_lte.common import debug
import urequests as requests

# Get LTE ready
picoLTE = PicoLTE()

# Download file
linkFile = open("urlLink.txt", "a")
csv_url = linkFile.read()
res = requests.get(url=csv_url)
print(res.text)

Trying external libraries like this usually just throws an exception with an error like OSError: -6.

I’ve also tried a more direct approach using the SDK examples for HTTP and such. Using the SDK example get.py with my URL in the config.json file seems like it tries to work, but it just times out regardless of the sleep time ahead of reading the response.

INFO: {'response': 'timeout', 'status': 2}

Is there a better approach to sending a request like this?

Thanks!

Well, as expected, I found the answer right after posting the question here:

I updated my device with the dev branch of the SDK, which seems to resolve my issue. Onto the next problem to solve.