cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Protected APIS are returning following response for server on check of slot availability #425

Open chhabraharsh opened 3 years ago

chhabraharsh commented 3 years ago

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

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: UmV7z2wcMTlSgtxRo9Z9pMB_nUW1NPYPvk8vA9UfnsIHeIGB0xhjcw==

Tried adding user agent and server APIs mentioned in the documentation, nothing worked.

rahulshinde11 commented 3 years ago

Server IP's and Non-Indian IP's are blocked. You could try Indian Aws servers or lambda functions as a proxy.

chhabraharsh commented 3 years ago

@rahulshinde11 We are using Indian AWS in Mumbai region. What could be another possible reason?

rahulshinde11 commented 3 years ago

I think now they are also blocking all Server IPs. If you are making a website you may have a way. Was it working before?

rahulshinde11 commented 3 years ago

There is another way. Try running the API inside a Lambda function and pass it back to your backend.

rahulshinde11 commented 3 years ago

Also, you could attach an Elastic IP and see if that will work. Or remove if you have one

rahulshinde11 commented 3 years ago

And you need permission to use protected api.

yashwanthm commented 3 years ago

I have the same problem. I'm using AWS Mumbai region to make sure that I get an Indian IP. The API calls are throwing 403. What could be the reason @cowinapi ?