Using GCS in GAE Local devserver

后端 未结 4 1894
无人共我
无人共我 2020-12-19 03:15

Yesterday this code was working fine both in local and production servers:

import cloudstorage

def filelist(Handler):
    gs_bucket_name=\"/bucketname\"
            


        
4条回答
  •  太阳男子
    2020-12-19 03:41

    It's a known bug in the dev_appserver, where the SDK does not cope with the credentials already persisted in earlier versions. For me (on Ubuntu 15.10 with SDK 1.9.33) it helped to simply remove a file:

    rm ~/.config/gcloud/application_default_credentials.json
    

    as suggested in the bug issue filed by Jari Wiklund.

提交回复
热议问题