Skip to content
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

ConnectTimeout: How many requests per second are there? #54

Open
congvmit opened this issue Jan 16, 2024 · 2 comments
Open

ConnectTimeout: How many requests per second are there? #54

congvmit opened this issue Jan 16, 2024 · 2 comments

Comments

@congvmit
Copy link

Hi team,
I am developing a data pipeline to collect sale data from Shopee with python-shopee.
The problem is that the request is frequently timeout even I set the timeout up to 20-30s.
I search for the number of requests per second from Shopee API documents, but cannot find any info related to this.

Anyone have ideas to deal with this? It is about me or server side?

@klinsc
Copy link

klinsc commented Jan 16, 2024

There is no clear explanation. From my experience it is about the server side, they would limit them around 1,000 requests per second(RPS) and it would be succeed. But if you continue with the same RPS, they will reduce the speed like 500, 250, 125 and so on until zero.

I fixed this issue by using a chunk request at 100 RPS. Absolutely, this slows down my tasks. I had tried with 200 RPS but it failed.

@congvmit
Copy link
Author

Thank you for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants