pyrax icon indicating copy to clipboard operation
pyrax copied to clipboard

504 Gateway Time-out The server didn't respond in time.

Open davneet4u opened this issue 9 years ago • 1 comments

When I do python manage.py runserver , the localhost takes a long time to respond (>15 minutes) and in the end, I get this error.

The exception location is pyrax/http.py in request, line 76

Though, I run these in my python manage.py shell , it connects without any issue.

import pyrax, os pyrax.set_setting("identity_type", "rackspace") pyrax.set_default_region('HKG') pyrax.cloudfiles.set_temp_url_key("some_key") pyrax.set_credentials(os.environ["RACKSPACE_USERNAME"],os.environ["RACKSPACE_API_KEY"]) some_container = pyrax.cloudfiles.get_container("some-container")

Further figuring out, the issue is in this line pyrax.cloudfiles.set_temp_url_key("some_key")

I am using temporary_url to upload files directly via browser, it did not give this error until now.

davneet4u avatar Feb 12 '16 05:02 davneet4u

Now it is giving a timeout error in my website.

davneet4u avatar Feb 12 '16 07:02 davneet4u