Comments (4)
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.
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.
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.
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)
- TravisCI build Error HOT 2
- Deleting Scrach Org failed with
- Build Error - YAML Line 16 HOT 4
- "The callback URL provided is not valid" on JWT or SFDXURL Auth HOT 4
- Travis build fails due to use of --wait flags
- Travis build fails due to depreciated settings in the project-scratch-de.json
- travis login error from command line gitbash HOT 1
- Scratch org definition is missing a closing } for the settings property
- travisci build error HOT 1
- Error in Travis CI build, bad decrypt, digital envelope routines:EVP_DecryptFinal_ex:wrong final block length:evp_enc.c:518: HOT 1
- NoMethodError: undefined method `each_pair'
- Org creation and/or run test commands timeout or take much longer HOT 4
- Cannot get the build to fail with force:apex:test-run HOT 9
- Need valid link to trailhead module HOT 1
- Tar ball file issue travis
- Need link to the final Dev Guide for JWT-Auth setup HOT 1
- Travis CI builds failing on scratch org creation script HOT 1
- Error when generating an RSA private key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfdx-travisci.