High Error Rate on intraday candle API for options

For example,

https://api.upstox.com//v3/historical-candle/intraday/NSE_FO|54912/minutes/3

very often returns an error of the following type:

Error 400 Ambiguous URI empty segment

However sometimes it does work, which means the path is correct. And it always works for other types of instruments such as NIFTY_50.

Nevermind, the problem was two / in the URL. Removing that seems to work. It is strange that it worked sometimes with // and sometimes not. Looks like the gateway might be rejecting it sometimes.

1 Like

Noted, @HARSHAD_RA_1109131. Thanks for letting us know.