Giter Club home page Giter Club logo

Comments (10)

Sbrenthughes avatar Sbrenthughes commented on June 30, 2024

What headers are you using? This is usually a header issue or a token issue.

from api.

adhish70 avatar adhish70 commented on June 30, 2024

Thank You for your response.
The headers that I am using are:
"Authorization": "apiToken token",
"apiUser": "name of user",
"api_key": "key"

Am I missing any header here?

from api.

Sbrenthughes avatar Sbrenthughes commented on June 30, 2024

The api_key is not needed here. Can you try without that?

from api.

adhish70 avatar adhish70 commented on June 30, 2024

@Sbrenthughes Thank you for your response.
I tried the same post request without api_key.
It gave me a 500 and the error is the same.

Any other thing you can advice for me to look into?

from api.

Sbrenthughes avatar Sbrenthughes commented on June 30, 2024

How did you create the token?

from api.

adhish70 avatar adhish70 commented on June 30, 2024

I created the token form the admin setting ->generate apiToken.

from api.

adhish70 avatar adhish70 commented on June 30, 2024

@Sbrenthughes @tabladrum @rvema @fidelcoria-aa
Can anyone help with this?
Is it possible to provide a sample POST request with all the expected headers and authentication?

Thank You

from api.

Sbrenthughes avatar Sbrenthughes commented on June 30, 2024

if you are using the token that you created from the admin screen alone then that is why it will not work. You must then base64 encode it. You can try using something like echo "PasswordIsAuthToken:{\"apiKey\":\"<token>\"}" | base64 where<token> is the token you generated from the UI.

You would then do something like:

Authorization: apiToken <token_generated_from_above>
Accept:application/json
Content-Type:application/json
apiUser:<api_user>

@adhish70

from api.

stale avatar stale commented on June 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from api.

sparsh610 avatar sparsh610 commented on June 30, 2024

I am also facing same issue. is it resolved ?

from api.

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.