I'm currently facing a challenge while attempting to retrieve data from the OSI API using Python. When I try to access the data through a browser, it displays without any issues. However, when I attempt to fetch the data using Python, I encounter the following error:
HTTPSConnectionPool(host='your_api_url.com', port=443): Max retries exceeded with url: /piwebapi/auth/login (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x00000189DE38CB80>: Failed to resolve 'your_api_url.com' ([Errno 11001] getaddrinfo failed)"))
Additionally, when using Postman to access the same endpoint, I receive a 401 Unauthorized request error.
I would greatly appreciate any insights, suggestions, or guidance from the community on how to resolve these issues. If anyone has experience working with OSI API in Python or has encountered similar problems