UDAPI100500: Not able to get proper response for Bank Nifty Quotes

The following URL

https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_INDEX%7CNifty_BANK

giving this response:
“errorCode”: “UDAPI100500”,
“message”: “Something went wrong… please contact us”,

However it works fine for NIFTY_50 i.e.

https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_INDEX%7CNifty%2050

Please find the correctly encoded URL below:

https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_INDEX%7CNifty%20Bank

The URL you mentioned is not properly encoded.

We use Standard URL Encoding : Encodes special characters and non-ASCII characters using the percent sign and two hexadecimal digits.