0% found this document useful (0 votes)
11 views2 pages

Python Asyncio HTTP 403 Error Debugging

The document contains a traceback of an error encountered while running a Python script, indicating an HTTP 403 Forbidden error when trying to access a specific URL for product data. The error occurs during an asynchronous function call in the script, specifically when attempting to search for products using certain parameters. This suggests that the request to the external data source was not authorized or the resource is restricted.

Uploaded by

aryan.soni.1505
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Python Asyncio HTTP 403 Error Debugging

The document contains a traceback of an error encountered while running a Python script, indicating an HTTP 403 Forbidden error when trying to access a specific URL for product data. The error occurs during an asynchronous function call in the script, specifically when attempting to search for products using certain parameters. This suggests that the request to the external data source was not authorized or the resource is restricted.

Uploaded by

aryan.soni.1505
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Traceback (most recent call last):

File "d:\dev\alevelproject\python\xx\evi_pixel.py", line 179, in <module>


[Link](main())
~~~~~~~~~~~^^^^^^^^
File "C:\Program
Files\WindowsApps\[Link].3.13_3.13.2544.0_x64__qbz5n
2kfra8p0\Lib\asyncio\[Link]", line 195, in run
return [Link](main)
~~~~~~~~~~^^^^^^
File "C:\Program
Files\WindowsApps\[Link].3.13_3.13.2544.0_x64__qbz5n
2kfra8p0\Lib\asyncio\[Link]", line 118, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Program
Files\WindowsApps\[Link].3.13_3.13.2544.0_x64__qbz5n
2kfra8p0\Lib\asyncio\base_events.py", line 725, in run_until_complete
return [Link]()
~~~~~~~~~~~~~^^
File "d:\dev\alevelproject\python\xx\evi_pixel.py", line 164, in main
products = search_products(token, POLYGON_COORDS, start_time, end_time)
File "d:\dev\alevelproject\python\xx\evi_pixel.py", line 75, in search_products
r.raise_for_status()
~~~~~~~~~~~~~~~~~~^^
File
"C:\Users\User\AppData\Local\Packages\[Link].3.13_qbz
5n2kfra8p0\LocalCache\local-packages\Python313\site-
packages\requests\[Link]", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
[Link]: 403 Client Error: Forbidden for url:
[Link]
Intersects%28area%3Dgeography%27SRID%3D4326%3BPOLYGON%28%28-
0.9037736901351989+52.34374602863986%2C+-
0.9042028435775817+52.34309057477515%2C+-
0.9041947969505371+52.3420483831226%2C+-
0.9038434275695861+52.341012721800304%2C+-
0.9030722924778045+52.340817713236305%2C+-
0.9026008942434371+52.34069398886953%2C+-
0.9021294960090698+52.34070136317924%2C+-
0.8997825631210388+52.34037689238867%2C+-
0.8996437588045181+52.34059464041052%2C+-
0.8995451876232208+52.340835329591485%2C+-
0.8993990072319091+52.34131998144803%2C+-
0.8990744599411071+52.34227124377977%2C+-
0.8996860035965026+52.34249328397927%2C+-
0.9003941067764343+52.34265633123859%2C+-
0.900988216073233+52.34282675185191%2C+-
0.9016601094314636+52.34286116362683%2C+-
0.9026632556030334+52.34334210634466%2C+-
0.9037736901351989+52.34374602863986%29%29%27%29+and+Collection%2FNam
e+eq+%27SENTINEL-
2%27+and+Attributes%[Link]%2Fany%28att%3Aatt%2FName+
eq+%27productType%27+and+att%2FValue+eq+%27S2MSI2A%27%29+and+Attribute
s%[Link]%2Fany%28att%3Aatt%2FName+eq+%27cloudCove
r%27+and+att%2FValue+lt+30%29+and+ContentDate%2FStart+ge+2025-01-
01T00%3A00%3A00Z+and+ContentDate%2FEnd+le+2025-01-
31T00%3A00%3A00Z&%24orderby=ContentDate%2FStart+asc&%24top=100&%24exp
and=Attributes
PS D:\dev\alevelproject>

You might also like