[#425] Some questions about the JSON-RPC client and API calls

Migrated from Redmine #425 | Author: Erik Joling
Status: New | Priority: Normal | Created: 2019-09-19


Hi,

I sometimes experience blocked requests, most likely because of the limitation set to how many requests I can send the to the API-server during a certain timeperiod. So I’m investigating how I could prevent throttling.

I was told I could wrap multiple calls into a single request. Is this true? How would I do that? I’m using the PHP JSON-RPC client example shown on your website. And would this help prevent throttling?

Furthermore, I’m storing the token and the client for 15 minutes on my server so I don’t have to request new ones on each request. Is this advisable? Should I extend the the caching time?

Kind regards,
Erik

Redmine Admin wrote:

Hi, yes, we have DDoS protection which may cause blocked requests.
There is only one way to prevent this: decrease number of requests per minute (use cache and/or queue manager your side).
Token lifetime is 30 minutes.