Refreshing Session Token: ERROR: Post /services/oauth2/token: unsupported protocol scheme ""
Closed this issue · 3 comments
sfllaw commented
If you're using a custom endpoint for tokens, and your session expires, then refreshTokenURL
has trouble refreshing the session token:
slaw@mittens:~/work/src/github.com/ForceCLI/force$ ./force fetch -t CustomObject
Refreshing Session Token
Post /services/oauth2/token: unsupported protocol scheme ""
ERROR: Post /services/oauth2/token: unsupported protocol scheme ""
This is because refreshTokenURL
calls tokenURL
while CustomEndpoint == ''
:
Lines 303 to 311 in 063d47e
I think the hacky solution would be setting:
CustomEndpoint = f.Credentials.InstanceUrl
asknet commented
I'm facing the same issue. Appreciate if this can be fixed. Thanks!