function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brian11Brian11 

Circle CI not connecting to salesforce connected app

Hi
I've created a connected app and try to follow the circle ci implementations on the sample gallery projects: https://trailhead.salesforce.com/sample-gallery

When circle ci runs the following code it returns an error. I'm not sure why and how to avoid it.
 

node_modules/sfdx-cli/bin/run force:auth:jwt:grant --clientid $CONSUMERKEY_PRERELEASE --jwtkeyfile assets/server.key --username $USERNAME_PRERELEASE --setdefaultdevhubusername -a HubOrg


ERROR: This session is not valid for use with the REST API.

Does anyone has a solution for this
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Brian

Are you providing the correct session id?

Cheers!!!
Raj VakatiRaj Vakati
Make sure you have giving FULL access or API Access on the connect App 

User-added image
Brian11Brian11
Hey so I gave my self all the scope that I require including Full Access.
@syed Do I provide the session Id from the connected app? I thought the connected app would handle that?