Failed to resolve 'api-v2.upstox.com'

Hi Team,

getting below error. kindly suggest.

An error occurred: HTTPSConnectionPool(host=‘api-v2.upstox.com’, port=443): Max retries exceeded with url: /historical-candle/intraday/NSE_INDEX%7CNifty%20Bank/1minute (Caused by NameResolutionError(“<urllib3.connection.HTTPSConnection object at 0x000002172F430490>: Failed to resolve ‘api-v2.upstox.com’ ([Errno 11001] getaddrinfo failed)”))

It appears that the error you’re encountering is likely due to an issue with the application you’re using to make the call.

Here is a corrected curl request for you to try. Please execute this in your Postman application:

curl --location 'https://api-v2.upstox.com/historical-candle/intraday/NSE_INDEX%7CNifty%20Bank/1minute' \
--header 'accept: application/json' \
--header 'Api-Version: 2.0'