Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024567Openbravo ERP09. Financial managementpublic2013-08-23 03:002013-08-23 12:13
pjuvara 
dmiguelez 
normalcriticalalways
closedduplicate 
5
3.0MP24.2 
 
dmitry_mezentsev
Advanced Payables and Receivables Mngmt
No
0024567: Zoho Reports integration fails as it runs out of authorization tokens
Zoho has recently changed the security model to use authorization tokens and a new version of the integration module (versions 0.1.7 and 0.1.8) has been published to use the new paradigm.

The new version initially works but very quickly starts failing with the error EXCEEDED_MAXIMUM_ALLOWED_AUTHTOKENS.

The issue is that authorization tokens are permanent and therefore limited. Each installation is supposed to acquire an authorization token upon the first usage and continue to reuse it.
Instead Openbravo requests an authorization token every time the integration module is run.

You can look at the documentation that clearly states that tokens are permanent: https://zohoreportsapi.wiki.zoho.com/Prerequisites.html [^]

If you have an integration which is schedule to run every 15 minutes, you will run out of authorization tokens very quickly.

In my case, I have the synchronization schedule to run every hour and I run out in 12 days.
Here is an example of the error log you get:

2013-08-22 04:02:00.064 - Getting hql for csv importation
2013-08-22 04:02:00.082 - Generating csv file
2013-08-22 04:02:03.475 - CSV file stored in /opt/OpenbravoERP/zoho-imports/Cash Balance-20130822-040200.csv.zip
2013-08-22 04:02:03.475 - Importing to Zoho Reports
2013-08-22 04:02:03.475 - Getting zoho auth token
2013-08-22 04:02:03.603 - Error importing: EXCEEDED_MAXIMUM_ALLOWED_AUTHTOKENS
The integration module should acquire an authorization token upon the first usage and store it for subsequent reuse.
A new token should be requested only if the previous token has expired.
No tags attached.
duplicate of defect 0024413 closed caristu EXCEED_MAXIMUM_ALLOWED_AUTHTOKENS error in Zoho Module 
Issue History
2013-08-23 03:00pjuvaraNew Issue
2013-08-23 03:00pjuvaraAssigned To => dmiguelez
2013-08-23 03:00pjuvaraModules => Advanced Payables and Receivables Mngmt
2013-08-23 03:00pjuvaraTriggers an Emergency Pack => No
2013-08-23 12:13dmitry_mezentsevReview Assigned To => dmitry_mezentsev
2013-08-23 12:13dmitry_mezentsevRelationship addedduplicate of 0024413
2013-08-23 12:13dmitry_mezentsevStatusnew => closed
2013-08-23 12:13dmitry_mezentsevResolutionopen => duplicate

There are no notes attached to this issue.