Closed ghost closed 3 years ago
@aman-3003 Actually, I didn't get time to update the readme. So basically if you open Terminal in the folder where you have extracted the OSX Release, there will be a run.sh file.
So, just do this is your Terminal: bash run.sh
and it should work fine.
Probably because you are double clicking the CoWinVaccineSlotFinder executatable, so by default it searches within default path. Try it and let me know.
Yesss now it works perfectly 👍🏻
@aman-3003 Can you please test the scenario as per the description in #79 for Mac and see if it works. Need some feedback that it works, before making a new release. See the discussions for all different types of test scenarios. Would be happy if you can contribute.
When in appsettings.json "ProtectedAPI" is "true" it works till 20 tries then it throttles. The fix you provided to use the PublicAPI for searching works but when it is changed back to using the "ProtectedAPI" it throttles again. So i will be trying after some time to see how much time it take to allow the requests again from the protected API. And if you want any more test to be done on Mac i would be happy to help!
Try 2: After 15 min the ProtectedAPI is still throttling.
Can we make requests from PublicAPI and if a slot is found then it tries to book from ProtectedAPI could that be done? @SRvSaha
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Can we make requests from PublicAPI and if a slot is found then it tries to book from ProtectedAPI could that be done? @SRvSaha
Yes right, that's what is the plan now. Please check #79 last comment.
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Yes exactly right! That' what it is! This is what I am trying to do automated. The throttling message is coming because status code 403 is being returned. However it might not be throttling, it might be the Explicit Deny, Hence re-login would be needed. Since you are deleting authtoken file, essentially it is trying to do the same thing I am trying to automate. Good observation and proof. And yeah, thanks for you help with testing in Mac. Would need more support thanks.
Try 2: After 15 min the ProtectedAPI is still throttling.
It might not be throttling, can be just that they're sending explicit deny with 403 for the same login, So it works when you delete the token
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Yes exactly right! That' what it is! This is what I am trying to do automated. The throttling message is coming because status code 403 is being returned. However it might not be throttling, it might be the Explicit Deny, Hence re-login would be needed. Since you are deleting authtoken file, essentially it is trying to do the same thing I am trying to automate. Good observation and proof. And yeah, thanks for you help with testing in Mac. Would need more support thanks.
Would be happy to help ask me whenever you need some testing done on mac. And see the repo i mentioned it also does automated OTP's so users don't have to manually enter the OTP received. 👍🏻
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Yes exactly right! That' what it is! This is what I am trying to do automated. The throttling message is coming because status code 403 is being returned. However it might not be throttling, it might be the Explicit Deny, Hence re-login would be needed. Since you are deleting authtoken file, essentially it is trying to do the same thing I am trying to automate. Good observation and proof. And yeah, thanks for you help with testing in Mac. Would need more support thanks.
Would be happy to help ask me whenever you need some testing done on mac. And see the repo i mentioned it also does automated OTP's so users don't have to manually enter the OTP received. 👍🏻
Regarding the Auto OTP: Actually I am procastinating it due to privacy concerns. Usually we don't collect any of the user data. Now, I see the core requirements are the followings for Auto-OTP:
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Yes exactly right! That' what it is! This is what I am trying to do automated. The throttling message is coming because status code 403 is being returned. However it might not be throttling, it might be the Explicit Deny, Hence re-login would be needed. Since you are deleting authtoken file, essentially it is trying to do the same thing I am trying to automate. Good observation and proof. And yeah, thanks for you help with testing in Mac. Would need more support thanks.
Would be happy to help ask me whenever you need some testing done on mac. And see the repo i mentioned it also does automated OTP's so users don't have to manually enter the OTP received. 👍🏻
Regarding the Auto OTP: Actually I am procastinating it due to privacy concerns. Usually we don't collect any of the user data. Now, I see the core requirements are the followings for Auto-OTP:
- Should be having very low latency and the service should be always available. Now most cloud providers do support it like KVDB but then the data is stored with them and there is issue with KVDB Buckets as anyone can delete it. Need some better service or a self developed service.
- It would be best if there can be a local server which can be accessed if both the phone and the computer running the program are in same network. In that way we reduce latency quite a lot and thereby quick response.
- Any other sugestions welcome.
Yess that's the thing either people can create their own bucket. The idea of local server is also cool. If i can any other alternative will tell you.
@aman-3003 Version 5.2.0 is out now will all the fixes suggested here and #79 along with new features for better UX. Thank you for your patience and support. Check it out and share your feedback!
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Yes exactly right! That' what it is! This is what I am trying to do automated. The throttling message is coming because status code 403 is being returned. However it might not be throttling, it might be the Explicit Deny, Hence re-login would be needed. Since you are deleting authtoken file, essentially it is trying to do the same thing I am trying to automate. Good observation and proof. And yeah, thanks for you help with testing in Mac. Would need more support thanks.
Would be happy to help ask me whenever you need some testing done on mac. And see the repo i mentioned it also does automated OTP's so users don't have to manually enter the OTP received. 👍🏻
Hi @amn-3003 Can you please test the v5.2.0 in Mac and see if it works? Also, can you create a step by step procedure how to run it on mac, to be added in ReadMe
Try 3: After 30 min when a single pin-code was searched it worked till try-20. Then i added 1 more pin-code it immediately throttled after 12 tries. But i think i found a workaround when it throttles if you just delete the authToken.json and ask for a new OTP then it again works for 20 tries before it throttles again. You can also automate the input of OTP using the methods used in this repo : https://github.com/bombardier-gif/covid-vaccine-booking
Yes exactly right! That' what it is! This is what I am trying to do automated. The throttling message is coming because status code 403 is being returned. However it might not be throttling, it might be the Explicit Deny, Hence re-login would be needed. Since you are deleting authtoken file, essentially it is trying to do the same thing I am trying to automate. Good observation and proof. And yeah, thanks for you help with testing in Mac. Would need more support thanks.
Would be happy to help ask me whenever you need some testing done on mac. And see the repo i mentioned it also does automated OTP's so users don't have to manually enter the OTP received. 👍🏻
Hi @amn-3003 Can you please test the v5.2.0 in Mac and see if it works? Also, can you create a step by step procedure how to run it on mac, to be added in ReadMe
It works great! I have created a pull request 👍🏻
It takes the appsettings.json file from the path /Users/[user-name]/appsettings.json instead from the folder itself. It works when the file is moved to this /Users/[user-name]/appsettings.json