Select to view content in your preferred language

Using the Requests library in an ArcGIS Online Notebook

317
0
05-10-2023 02:28 AM
Labels (1)
JanDommel
New Contributor

Currently, I am writing a notebook in ArcGIS Online, which I intend to run periodically to retrieve data and prepare it for displaying data in a feature layer. For retrieving this data, I have to make use of Python's Requests library.

However, when I run the following code line:

response = requests.get(data_url)

(in which data_url is a request url for the database, which yields results in other non-ArcGIS Online python environments)

I get the error:

[Errno 111] Connection refused
<urllib3.connection.HTTPConnection object at 0x7f4208ccc9d0>: Failed to establish a new connection: [Errno 111] Connection refused

 

Anyone have experience with this? Thanks in advance!

0 Kudos
0 Replies