"OSError: -2" Pi Pico W

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

"OSError: -2" Pi Pico W

Post by /RaspberryPi »

Trying to send a get request with data and headers using urequests, this is my code
import urequests as requests
#>
response = requests.get(
'https://api.stormglass.io/v2/tide/extremes/point',
data={'lat': 60.936,
'lng': 5.114},
headers={'Authorization': api_key} #
Post Reply

Return to “Raspberry Pi Forum”