Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception 'HPCloud\Exception' with message 'Unknown status: 200' #17

Open
onokje opened this issue Oct 21, 2014 · 2 comments
Open

Comments

@onokje
Copy link

onokje commented Oct 21, 2014

I got this error:

Uncaught exception 'HPCloud\Exception' with message 'Unknown status: 200' in /websites/Nokj.nl/vendor/hpcloud/hpcloud-php/src/HPCloud/Storage/ObjectStorage.php:433

When getting a file list (iterating over a container object)
It's easy to add a "hack" to make 200 a valid return status, but i was wondering, is this a bug or is my service returning a wrong statuscode? (I use cloudVPS)

According to this document:
http://docs.openstack.org/api/openstack-object-storage/1.0/content/GET_showContainerDetails__v1__account___container__storage_container_services.html

200 can be a valid response code.

@samfchoi
Copy link
Contributor

samfchoi commented Nov 5, 2014

Hello,
My apologies for the delay, I just returned from a long series of trips.

I did some research into the issue you brought up and believe that you're correct. Both 200 and 204 are valid response codes. I also noticed that when running the test suite against my HP Cloud account, various calls to the container() function work properly. I do not know much at all about cloud VPS, but I believe that you're seeing this behavior because HP Cloud and CloudVPS are likely using slightly different versions of the underlying OpenStack Object Storage service.

That said, I'll go ahead and take a look at the related code/tests and modify them. Thanks for reporting this!

@onokje
Copy link
Author

onokje commented Nov 5, 2014

My pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants