Request had invalid authentication credentials. Expected OAuth 2 access token error in cloud speech api

后端 未结 4 1032
野趣味
野趣味 2020-12-30 00:32

i have followed the google cloud speech api quickstart of requesting api by using

curl -s -H \"Content-Type: application/json\" \\
     -H \"Authorization: B         


        
4条回答
  •  隐瞒了意图╮
    2020-12-30 01:01

    It could be that The Application Default Credentials are not available

    Try to login by running

    gcloud auth application-default login
    

    And follow the instructions, reference: gcloud auth application-default login

    If you want to make sure the authentication process went well, run:

    gcloud auth application-default print-access-token
    

    You should see an access token, reference gcloud auth application-default print-access-token

提交回复
热议问题