This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

failed to connect api.cloudinary.com:443 ( is the api server is down ? or not ?

Comments

2 comments

  • Avatar
    Ismail Zakky

    already Found the answer. that errors happen because my app running behind proxy.
    now im trying to set proxy parameter when calling upload api, but it doesnt change anything.
    is this the right way to set proxy parameter when calling upload api?

    public Map uploadIMage(MultipartFile multipartFile) throws IOException {
    File convFile = new File(multipartFile.getOriginalFilename());
    convFile.createNewFile();
    FileOutputStream fileOutputStream = new FileOutputStream(convFile);
    fileOutputStream.write(multipartFile.getBytes());
    fileOutputStream.close();
    Map uploadResult = cloudinary.uploader().upload(convFile,ObjectUtils.asMap("proxy","http://10.17.33.240:3128"));

    return uploadResult;
    }
    1
    Comment actions Permalink
  • Avatar
    Aditi Madan

    Hi Ismail,

     

    Proxy tells Cloudinary to upload resources from remote URLs through the given proxy. Format: http://hostname:port.

    I see you are passing a file, for the proxy you need to pass the URL. In your case, I don't think you need a proxy, you can simply upload your file.

     

    Please let me know if you have any questions.

    Thanks,
    Aditi

    0
    Comment actions Permalink

Post is closed for comments.