eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 313 forks source link

Update Google Storage API endpoint #143

Closed eillarra closed 9 years ago

eillarra commented 9 years ago

JSON API v1beta2 is no longer available. Changing this to v1 makes it work again. More information here: https://cloud.google.com/storage/docs/json_api/v1/how-tos/migrate

krallin commented 9 years ago

Thanks, @eillarra !

Do you know if any additional changes are required to migrate? (i.e. have you tested this?)

Cheers,

eillarra commented 9 years ago

Trying to deploy using the original v1beta2 returns this error in the command line:

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/storage/v1beta2/b/bucket?alt=json returned "Version v1beta2 of this API is no longer available. Please try again using JSON API v1. To request temporary reinstatement for your project, please visit https://docs.google.com/forms/d/1isIxBZg3rsQbDN_TOalZaz1WT_ebJchsrlv-Qr_r9mY/viewform"&gt;

Changing it to v1 makes it work as expected. Deploys without problems.

eillarra commented 9 years ago

Also note that Crate website points this same issue in their repo: https://github.com/crate/crate-web#deploying-to-google-cloud-storage

krallin commented 9 years ago

Tested; thanks (I just wanted to make sure the ACL format hadn't changed and that bucket creation was still working).

This change is reasonably trivial and I'm assuming it was tested by the Crate folks so I'll merge it without adding tests.

Cheers,