08-17-2016 08:12 AM - edited 03-01-2019 04:30 AM
Hi all,
I was wondering if there is an upper limit on the number of authorization tokens (tickets), that a single user can create ? Similarily, is there a limitation of only a single call to certain API resource at a time ?
I'm trying to manage PNP device configs using parallel API requests for each of the devices and I start getting "Not authorized" errors (HTTP error code 401) while doing requests in parallel. If fallbacking to calling API for each host in a serialized sequence - all the auth issues disappear.
thanks,
Vytautas
08-17-2016 07:11 PM
Hi Vytautas,
how many sessions are you running in parallel?
Just looking for an order of magnitude... 10,100, 1000?
08-17-2016 10:44 PM
Hi,
I'm dealing with around 30 nodes at the moment, however I start hitting auth erros roughly at a number of 5. In a long term, there may be up to 200 sessions if no workaround is applied (I'm thinking of either introducing some batching to serialize the requests or just add code to retry the request upon such failure).
Vytautas
08-18-2016 07:28 PM
Most API are async to stop these types of issues.
What is the API that you are calling that fails?
Is it the /file API to upload configuration files? If so, those are synchronous, and will have a limit. You will need to batch them.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide