Forums

Request to add to whitelist - api.cloudinary.com:443

Error at /post/ Unexpected error - MaxRetryError("HTTPSConnectionPool(host='api.cloudinary.com', port=443): Max retries exceeded with url: /v1_1/meme-topia/image/upload (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d77f41370>: Failed to establish a new connection: [Errno 111] Connection refused'))")

That endpoint is already on our whitelist, you should probably set the proxy.

I was facing the same issue and it was resolved by writing this exact same code snippet.

import cloudinary
cloudinary.config(
  cloud_name = config('CLOUD_NAME'),
  api_key = config('CLOUD_API_KEY'),
  api_secret = config('CLOUD_API_SECRET'),
  api_proxy = "http://proxy.server:3128"
)
import cloudinary.uploader
import cloudinary.api

Thanks for letting us know!