Error Trying to upload from cloud.

CyberNinja
CyberNinja Member Posts: 3

I made a django app to upload images to cloudinary. The upload works fine on localmachine, but when I uploaded my project to python anywhere, I started getting the folllowing error.

{
"status": "false",
"error": "Unexpected error - MaxRetryError("TCPKeepAliveHTTPSConnectionPool(host='api.cloudinary.com', port=443): Max retries exceeded with url: /v1_1/dk0qatnu1/video/upload (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81448f8f70>: Failed to establish a new connection: [Errno 111] Connection refused'))")"
}

I can't figure out the exact cause, can someone please help me finding the problem if it is in cloudniary or python anywhere

Tagged:

Best Answer

Answers

  • CyberNinja
    CyberNinja Member Posts: 3
    edited July 16

    Hi Wissam,

    I have already tried the api_proxy setup, I still get the same error. If I'm not wrong the http://proxy.server:3128 url is the proxy url, at least this is what I retreived from the the environ. Do I need any paid services to continue? Cause I'm using free accounts under both python anywhere and cloudinary.


    update: I found the solution. The problem was I called the import before the configuration. Thank you for your fast feedback.

  • CyberNinja
    CyberNinja Member Posts: 3

    Thank you so much, even tho I tried the api_proxy thing. I was importing before configuration.
    This has helped me very much

  • Wissam
    Wissam Member, Cloudinary Staff Posts: 103

    I'm glad to see that it is resolved.

    Thank you for your update.
    Wissam

  • pat254
    pat254 Member Posts: 7

    I am experiencing the same error yet have done everything that you have recommended , here is my code:

    i have even added the proxy but still not working