Giter Site home page Giter Site logo

ERROR running force:auth:jwt:grant: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: error:0906D06C:PEM routines:PEM_read_bio:no start line about sfdx-travisci HOT 4 OPEN

fehays avatar fehays commented on July 26, 2024
ERROR running force:auth:jwt:grant: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: error:0906D06C:PEM routines:PEM_read_bio:no start line

from sfdx-travisci.

Comments (4)

pauldchuang avatar pauldchuang commented on July 26, 2024 5

The same error happened to me.

Solution: I just realized I used the wrong set of JWT key. (Meaning the key I used in command line does not match the one in connected app.)

from sfdx-travisci.

ppgit007 avatar ppgit007 commented on July 26, 2024 1

Thanks buddy. Actually, I missed to upload the .crt file in connected app, hence was facing the issue. Edited and updated the server.crt and it got authenticated.

from sfdx-travisci.

RatanPaul avatar RatanPaul commented on July 26, 2024

similar issue

ERROR running force:auth:jwt:grant: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: invalid assertion

I am following this https://trailhead.salesforce.com/content/learn/projects/automate-cicd-with-gitlab/integrate-with-gitlab
and got the above error when I tried

sfdx force:auth:jwt:grant --clientid --jwtkeyfile C:\drive\GitLab\certificates/server.key --username [email protected] --setdefaultdevhubusername --setalias DevHub

from sfdx-travisci.

nandre-shraddha avatar nandre-shraddha commented on July 26, 2024

force:auth:jwt:grant : The term 'force:auth:jwt:grant' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1

  • force:auth:jwt:grant
  •   + CategoryInfo          : ObjectNotFound: (force:auth:jwt:grant:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

getting this error

from sfdx-travisci.

Related Issues (19)

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.