连接到英国的 Rackspace Cloud Files 时出现问题
知道为什么以下代码
$auth = new CF_Authentication(USERNAME, API_KEY, NULL, UK_AUTHURL);
给我
PHP Fatal error: Uncaught exception 'InvalidResponseException' with message 'Unexpected response () : ' 在 /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php:212 堆栈跟踪: 0 /var/www/sites/mysite/http//test-rackspace.html(17): CF_Authentication->authenticate() 1 {主要} 扔在 /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php 第 212 行
上?
以前,我错误地尝试使用以下命令连接到美国服务器:
$auth = new CF_Authentication(USERNAME, API_KEY);
这给了我:
PHP Fatal error: Uncaught exception 'AuthenticationException'带有消息“用户名或访问密钥无效。”在 /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php:209 堆栈跟踪: 0 /var/www/sites/mysite/http/test-rackspace.html(17): CF_Authentication->authenticate() 1 {主要} 在第 209 行 /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php 中抛出
我尝试过 1.7.9 / 1.7.8 / 1.7.6 版本的代码。没有任何区别。
非常感谢任何帮助,在这里撕扯我的头发!
Any idea why the following code
$auth = new CF_Authentication(USERNAME, API_KEY, NULL, UK_AUTHURL);
is giving me
PHP Fatal error: Uncaught exception 'InvalidResponseException' with message 'Unexpected response (): ' in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php:212
?
Stack trace:
0 /var/www/sites/mysite/http//test-rackspace.html(17): CF_Authentication->authenticate()
1 {main}
thrown in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php on line 212
Previously I was erroneously trying to connect to the US server using the following:
$auth = new CF_Authentication(USERNAME, API_KEY);
which was giving me:
PHP Fatal error: Uncaught exception 'AuthenticationException' with message 'Invalid username or access key.' in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php:209
Stack trace:
0 /var/www/sites/mysite/http/test-rackspace.html(17): CF_Authentication->authenticate()
1 {main}
thrown in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php on line 209
I've tried 1.7.9 / 1.7.8 / 1.7.6 versions of the code. None makes any difference.
Any help massively appreciated, tearing my hair out here!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法在这里复制这个问题。下面打印了我的 UK Files 帐户上的容器列表。
如果您仍然遇到问题,您可能应该向 Rackspace 开具支持票证。
I'm not able to replicate this issue here. The following prints a list of containers on my UK Files account.
You should probably open a support ticket with Rackspace if you're still having trouble.