pyrax
pyrax copied to clipboard
504 Gateway Time-out The server didn't respond in time.
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.
Now it is giving a timeout error in my website.