Getting 403 while fetching instrument api

ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.


Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: b0pe9FYfZVp-iISlwfV_dFfsB-WLkvg0LeB5v6r97Cb2M69oRDiGUg==
getting this error from third party

Hi @2GC4WY,

Welcome to the Upstox Community!

We are checking this internally and will get back to you soon, thanks.

okay waiting please help me out this on it’s bit urgent

Hello,

Could you please share the URL or the curl request here, it will help the team debug this. Please make sure you remove any sensitive data from your curl request that is shared here.

https://assets.upstox.com/market-quote/instruments/exchange/NSE.csv.gz trying to hit this end point and passing only HttpMethod = Get Method with the help of HttpClient

Could you please add a User-Agent header and try the HttpRequest.
Here is a sample for reference.

HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create(fileUrl))
                .header("User-Agent", "JavaHttpClient/17 (Compatible; Upstox API Client)") // Add a custom User-Agent
                .GET()
                .build();

Let me know if this helps.