Experiencing the Authentication issue. getaddrinfo ENOTFOUND iothubforoxygen.azure-devices.net

Shiva Shankar 0 Reputation points
2024-02-26T11:58:38.9566667+00:00

I am trying to send post man POST request to the my IOT HUB and Device.

In the PostMan I am throwing the error,

enter image description here

I also received the following message in Azure portal, User's image

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,556 Reputation points MVP
    2024-02-26T17:57:23.9633333+00:00

    Hello @Shiva Shankar,

    welcome to this moderated Azure community forum.

    It seems you want to send a telemetry message to the IoT Hub.

    in the past, I posted a blog post about this subject, HTTPS access.

    In that post, the old device explorer was used.

    You can generate a sas token using the new Azure IoT Explorer.

    enter image description here

    Please try this sas token together with the code example from the blog post.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.