This support forum is no longer in use. Please use the Cloudinary Community at 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.

Java SDK upload resulted in invlaid signature for my partner but I am able to upload just fine


1 comment

  • Avatar
    Aleksandar Kostadinov

    Hi An,

    The Signature parameter is calculated based on the parameters passed as part of the upload() method plus your cloud's API Secret. Given that you mentioned the code is the same, as you're using the same code repository, that leaves the API Secret value that is part of the SDK configuration.

    As a first step, I would recommend double-checking that the value of the api_secret that your partner has configured in the SDK is the right one - and specifically, that there are no leading or trailing whitespaces or characters missing from the start/end of the secret. When copying/pasting the api_secret, I've encountered cases where additional whitespace can accidentally be included before/after the api_secret string and due to that, it will cause a different signature to be generated (that is not valid) and hence the request will be rejected when it reaches Cloudinary.

    The other thing to check is if the permission/path of the environment file makes it accessible to the script you're running with the Cloudinary SDK. If the file can't be found and/or read for some reason, then the credentials won't make it into the SDK configuration and the signature would effectively be signed with an api_secret of empty string which will again cause the signature to be invalid.

    Please let us know how it goes.

    Comment actions Permalink

Post is closed for comments.