- หน้าหลัก
- ชุมชน
- การเขียนโปรแกรม
- Error in API: "Too many request, please try again later...
Advertisement
Edit Your Comment
Error in API: "Too many request, please try again later"
เป็นสมาชิกตั้งแต่ May 03, 2021
3 โพสต์
Nov 03, 2021 at 21:24
เป็นสมาชิกตั้งแต่ May 03, 2021
3 โพสต์
I am developing a platform that consults every 5 minutes "get-data-daily.json" method in order to check for gain/loss during the day. But I get this error constantly.
How can I solve this? Or what is the maximum request per [x range time] in order to try avoiding this error?
Thank you!
How can I solve this? Or what is the maximum request per [x range time] in order to try avoiding this error?
Thank you!
เป็นสมาชิกตั้งแต่ Jan 06, 2020
3 โพสต์
เป็นสมาชิกตั้งแต่ May 03, 2021
3 โพสต์
เป็นสมาชิกตั้งแต่ Jan 06, 2020
3 โพสต์
Dec 30, 2021 at 09:20
เป็นสมาชิกตั้งแต่ Jan 06, 2020
3 โพสต์
I already tried this solution, sleep of 10 seconds between each get-data-daily and it doesn't help.
I tried 2 methods but same result
Login
Get-data-daily 1st
Sleep 10 seconds
Get-data daily 2nd
Sleep 10 seconds
Etc. Until fifth portfolio
Logout
Login
Get-data-daily 1st
Logout
Sleep 10 seconds
Login
Get-data-daily 2nd
Logout
Sleep 10 seconds
Etc until fifth portfolio.
I tried 2 methods but same result
Login
Get-data-daily 1st
Sleep 10 seconds
Get-data daily 2nd
Sleep 10 seconds
Etc. Until fifth portfolio
Logout
Login
Get-data-daily 1st
Logout
Sleep 10 seconds
Login
Get-data-daily 2nd
Logout
Sleep 10 seconds
Etc until fifth portfolio.
เป็นสมาชิกตั้งแต่ May 03, 2021
3 โพสต์
Dec 30, 2021 at 20:44
(แก้ไขแล้ว Dec 30, 2021 at 20:45)
เป็นสมาชิกตั้งแต่ May 03, 2021
3 โพสต์
Hello, you need to wait 1.2 seconds from EVERY request, so the schema is the following:
Login
Sleep 1.2 seconds <----- here is your error, you don't wait.
Get-data-daily 1st
Sleep 1.2 seconds
Get-data daily 2nd
Sleep 1.2 seconds
Get-data daily 3rd
Sleep 1.2 seconds
Logout
Login
Sleep 1.2 seconds <----- here is your error, you don't wait.
Get-data-daily 1st
Sleep 1.2 seconds
Get-data daily 2nd
Sleep 1.2 seconds
Get-data daily 3rd
Sleep 1.2 seconds
Logout

*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ