Unable to query my Product Environment

vedxp Member Posts: 4
edited January 16 in Developer APIs

I'm using nodejs sdk, and I have this simple config in my project:

cloudinary.config ({
 cloud_name: "testname",
 api_key: "11223344556677",
 api_secret: "h64hsh6wh7whs",
 secure: true,
 analytics: false,
 hide_sensitive: true

const result = await cloudinary.api

But I'm getting this error all the time:

Socket connection timeout

  Stack trace:
    at new NodeError (node:internal/errors:399:5)
    at Timeout.internalConnectMultipleTimeout (node:net:1638:3)
    at process.processTimers (node:internal/timers:514:7)

Best Answer

  • Cloudinary Team
    Cloudinary Team Administrator, Cloudinary Staff Posts: 135 admin
    Answer ✓

    Hi there,

    Thanks for reaching out.

    I'm afraid I cannot be of much help, as this seems to be an issue with your connection or with your version of Node, rather than a Cloudinary-specific problem. As the request never hit our servers, there will not be any logs on our end that I could use to help debug the issue.

    I do however want to mention that you should never share your API secret with anyone. If we need to ask you for this credential for account ownership verification, we would only ever ask for the last four characters. I would advise that you generate a new API key/secret pair.

    If you have any questions, do not hesitate to ask.

    Kind regards,


    Helpful Links For You
    💬 Share questions, connect with other users in our Cloudinary Community forums and Discord server!
    🧑‍🎓 Join our Cloudinary Academy for free courses, workshops and other educational resources.
    📄 Read our documentation for in-depth details on Cloudinary product features and capabilities
    📰 Check out the Cloudinary blog for the latest company news and insights