问题描述
我一直在试图创建使用谷歌云存储的gsutil一个signedurl,我一直在使用Python从我的Windows机器
直到现在我所做的就是
I have been trying to create a signedurl using gsutil of google cloud storage, I have been using python from my windows machineTill now what I have done is
- 创建一个服务帐户,从谷歌的开发者控制台
- 然后从我的Python我已经执行该命令来配置服务帐户的gsutil配置-e
- 然后给我的凭证信息要求由控制台
- 然后我试图创建一个标识的URL使用以下命令我的对象之一
- 蟒蛇的gsutil signurl -d10米-p notasecret p12file.p12 GS:// {我斗} / {我的对象}
- 这给了我这个输出错误信息
<一个href=\"https://storage.googleapis.com/support-videos/[email protected]&Expires=1409209504&Signature=GI5Uo8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX4hHzPqq1c%3D\" rel=\"nofollow\">https://storage.googleapis.com/support-videos/[email protected]&Expires=1409209504&Signature=GI5Uo8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX4hHzPqq1c%3D
[email protected]不会对GS的权限:// {我斗} / {我的对象}使用这个链接将可能导致403错误直到至少读权限授予
[email protected] does not have permissions on gs://{my bucket}/{my object} using this link will likely result in a 403 error until at least READ permissions are granted
我已经给读权限的所有用户对对象
I have given read permission to all users on object
请帮我出这一点,我一直停留在这2天...
Please, Help me out of this, I have been stuck on this for 2 days...
推荐答案
文件我试图接入已经在它的名字,由于一些错误与URL编码的空间我无法为它创建正确的URL ...
The file I was trying to access has spaces in its name due to some bugs with urlencoding I wasn't able to create proper url for it ...
因此,对于没有空格的文件正常工作与我
So for files without spaces works fine with me
参考 - > <一个href=\"http://stackoverflow.com/questions/25562798/using-google-cloud-storage-and-gsutil-not-able-to-generate-valid-signedurl?s=01a186e1-58f9-4eaf-be1b-0b81edbb7b30#comment40120111_25562798\">Using谷歌云存储的gsutil不能产生
这篇关于使用谷歌云存储的gsutil不能产生有效的signedurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!