I am trying to access several APIs through personal access Token, for example I am doing this :
curl -i -H "Authorization: Bearer <token>" -X GET https://api.git06.mycorp.com/2.0/repositories"
or
curl -i -H "Authorization: Bearer <token>" -X GET https://api.bitbucket.org/2.0/repositories"
{"type": "error", "error": {"message": "Access token expired."}}
It says token expired.
{"type": "error", "error": {"message": "Access token expired."}}
What should I do ?
Anyone at Atlassian? I'm running into the same error:
[ wgd@LIGETI Lo 61FAEB06 ~/Docs ]
$ curl --silent --request GET \
> --url 'https://api.bitbucket.org/2.0/repositories/<workspace>/<repo>/commits' \
> --header 'Authorization: Bearer <2-minute-old-app-password-with-all-read-perms>' \
> --header 'Accept: application/json' | json_pp
{
"error" : {
"message" : "Access token expired."
},
"type" : "error"
}
[ wgd@LIGETI Lo 61FAEB26 ~/Docs ]
$