Coder Social home page Coder Social logo

Comments (4)

pitchmuc avatar pitchmuc commented on July 25, 2024

Hello @meetu30,
Unfortunately there are very few things to do.

Are you using aanalytics2 ?
Which version of the module are you using ?
You can check that with : aanalytics2.__version__
Try to update to the newest version because I should catch these requests normally in my module and account for that.

If you are trying to re-built a python module for your own use, then you need to add a time.sleep between each call to ensure that it doesn't get above 12 for 6 seconds.

Also, note that the limitation is for everyone using the API, so if you share the API usage with other teams, they may "eat" your limitation.

from adobe-analytics-api-2.0.

meetu30 avatar meetu30 commented on July 25, 2024

Hi Pitchmuc,
I am doing this in Python via API call -
endpoint = 'https://analytics.adobe.io/api/' + globalCompanyID + '/reports'
Before calling this link, I provide credentials in "header" section and the metrics and dimensions in the "body" section. Once these 2 are set, I call API one by one for individual id. Total Ids that I have stored in list are close to 1000 most of the time. So this API is called at least 1000 times, with the purpose to return me the related metrics and dimension. The issue is that it gets stuck randomly after N number of calls, where N can be 40 /90/400 or any number. I tried to put time.sleep(2) statement right after the above API call, but still the same issue.
Sometimes I get "too many requests" error displayed on console.
Sometimes, there is just no error on console, but in log file I see this error - "Error occured: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None))"
Your input is highly appreciated. TIA.

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

Unfortunately, this is the issue of the Adobe API 2.0.
I would recommend you to raise a ticket on the official Adobe repo or via customer care for that

repo

You "just" need to account for that and setup a "retry" function, I believe I do have one so you can also use the aanalytics2 module directly ;)

from adobe-analytics-api-2.0.

meetu30 avatar meetu30 commented on July 25, 2024

Thanks much Pitchmuc!

from adobe-analytics-api-2.0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.