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

后端 未结 4 1052
野趣味
野趣味 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:03

    Samir's solution worked for me.

    Just a reminder that if using other software interacting with GCP, you may have to restart software before the auth takes effect.

    In my case, when using RStudio, I ran gcloud auth application-default login to authenticate, then command + shift + f10 to restart the R session, and then everything was good to go

提交回复
热议问题