bq cmd query Google Sheet Table occur “Access Denied: BigQuery BigQuery: No OAuth token with Google Drive scope was found” Error

前端 未结 4 1969
囚心锁ツ
囚心锁ツ 2021-02-06 01:39

I have a table connect with Google Sheet, use WebUI query this table success, but if I use bq cmd query, It will echo error msg:

Access Denied: BigQuery B

4条回答
  •  名媛妹妹
    2021-02-06 01:58

    Hi, I know what happen, before gcloud auth login --enable-gdrive-access, I need delete ~/.config/gcloud folder, thanks!! – Karl Lin Sep 14 '17 at 12:32

    Here's the complete answer based on Karl Lin's comment to the accepted answer.

    rm -rf ~/.config/gcloud 
    gcloud auth login --enable-gdrive-access
    

    I needed to delete ~/.config/gcloud or it won't work.

提交回复
热议问题