-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the authorization mechanism #23
Comments
@harneets04 The API which is being used here is one of the public APIs - so there is no auth required. CoWIN has released documentations for two levels of their APIs - public and private. Most likely, if you're getting a 403 Forbidden Error, it's because you might be hitting Postman on a URL which is not a public API (I faced this issue yesterday too 😅). Here's what I've done now - made a collection of only public APIs which don't need any auth. Feel free to use it if it helps you in any way. Kudos! |
@harshit-budhraja Thanks for your reply. Yes, I saw both private and public. And I am trying for the public only. And their PROD URL. PFB the SS. |
@harneets04 Yes, that appears to be the case. Try using India proxy? |
@harshit-budhraja I'm also trying to get vaccination details, but I'm getting access forbidden. It would be great if you could help me out. |
@satyamsovan123 I had the same issue. I was able to fix it by using an Indian proxy (or disabling a US one if you have any) |
@goodbadwolf @satyamsovan123 @devsatishm @harneets04 IP Addresses used: PFB the screenshots. |
@satyamsovan123 As far as your issue is concerned - can you check the |
Also, one more thing I just noticed - Hitting the APIs from Postman's Web Platform gives a Forbidden error, while doing the same from the desktop app works! Not clear if the downstream is blocking certain agents or origins, would need to explore this further. |
My question is how u get these api's link and is there mistake by arogya developers not adding authorization in these api |
I could only retrieve data from their Test server. As for the production server one, I'm getting this 403 Forbidden access like many others here. @harshit-budhraja I have tried playing around with the cdn API links in my postman windows application, and still have authorization issue. |
@princeraheja1998 You can get the API links here - https://www.postman.com/harshitbudhraja/workspace/harshit-s-public-workspace/documentation/15207083-2fcc3768-d4ed-4785-b426-830f87135329 All of them are available to public, @harshit-budhraja has compiled the endpoints. And, I believe something is wrong at their end. And, they haven't fixed it yet. |
For those who are getting errors by passing values, here - I had to go other way round. First I fetched the states, and got hold of stateID from here - baseUrl which I used was - https://cdn-api.co-vin.in/api/ I know it's long, and also let me tell you that initially it was working, but for some reason, instead of getting JSON in my console, I'm getting HTML as output from the third step (it says 403 ERROR !). However, if I use the above URL in browser, it works fine. Let me know if anyone can help. Thanks! |
Hi buddy,
Kudos to your efforts. This has made really easy.
Quick question, I was trying to call the API from postman directly but it is giving me 403 error. I saw your code and you are not using any authentication mechanism. So any idea why it is giving me 403 (forbidden) error?
Thanks!
The text was updated successfully, but these errors were encountered: