1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
630 stars 118 forks source link

"code": 401 Invalids Credentials #182

Closed methodeprog closed 5 years ago

methodeprog commented 5 years ago

Hi guy's please help ! I dont know the step i left ! I could not acces my bucket on google gloud storage. ! The errors ////////////////////// { "error": { "errors": [ { "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Invalid Credentials" } } /////////////// fireshot capture 2 - _error__ _errors__ _d_ - http___localhost_8000_board_ban_restaurant_new

My config: ////// oneup_flysystem: adapters: mycloud_adapter: googlecloudstorage: client: mycloud.google_storage_client bucket: mycloud.google_storage_bucket

filesystems:
    mycloud_filesystem:
        adapter: mycloud_adapter
        # optional - defines the default visibility of the filesystem: `public` or `private`(default)
        visibility: private
        mount: mycloud_filesystem

/////////////////// services /////////////// mycloud.google_storage_client: class: Google\Cloud\Storage\StorageClient arguments: