Coder Social home page Coder Social logo

Comments (7)

akashachanta01 avatar akashachanta01 commented on July 25, 2024 1

I tried it but no luck and I still get same error

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

Hello
Try to install that library:
PyJWT[crypto]>=1.7.1

Also retrieveToken is not really supported anymore.

I would recommend to use Login class and go to the class retrieve the token from there.

login = api2.Login()
login.connector.token ## getting the token
or 
login.header ## will provide you the required information

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

Several options I can provide:

  • You can try to upgrade pyJWT to 2.0.0
  • you can uninstall pyjwt and jwt and re-install one after the other

Are you using your local environment or are you on Google Cloud ? We have seen this issue coming from Google Collab, and it is a Google issue.

from adobe-analytics-api-2.0.

akashachanta01 avatar akashachanta01 commented on July 25, 2024

I was able to fix the issue I think but now I get a different error , I ran this cids = api2.getCompanyId() and I get this error

image

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

I would recommend to use the Login class as explained in my first answer.
The api2.getCompanyId() is not supported anymore.

What was the issue / or the resolution on the first isse ? It would be interesting for others.

from adobe-analytics-api-2.0.

akashachanta01 avatar akashachanta01 commented on July 25, 2024

I did pip uninstall pyjwt first and then conda install pyjwt -y. for the above issue , I had to do conda upgrade cryptography . Now it is working fine . And api2.getCompanyId() is also working fine for me .

from adobe-analytics-api-2.0.

pitchmuc avatar pitchmuc commented on July 25, 2024

Awesome to know.
Thanks for the feedback. Have fun !

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.