Chirpstack migration v3 - v4 does not work with azure

Hello everyone,

i have a problem with the chirpstack new version v4, well, in the v3 i was use integrations with HTTPS to azure iot hub, i received telemetry of devices but in the new version i lost the conection to azure iot hub, i checked my private server where i have install chirpstack is ok.
i use the software postman for send a post with the parameters json, endpoint, header and the proube is ok, azure receives the information.

i go back to previous version v3 check the conection and works with azure.

In the new version, i check the connection with azure and send me this messages, Error 104 connection reset by peer.

please, could you help me?

Thanks and regards

Could you provide a bit more details? ChirpStack does not provide an application integration with the Azure IoT Hub, it does have a Service Bus integration. Which integration are you using that is failing?

What are the exact steps to reproduce your issue and which version of ChirpStack v4 are you using?

Hello brocaar,

I am using chirpstack v 4.4.1 version with docker

The integration is currently done with HTTP, in version 3 of chirpstack this integration by HTTP worked correctly, only upgrade to version 4.4.1 and I have this problem, the integration does not work with HTTP, perform the same steps, add the same event endpoint as version 3, the same header but does not work in version 4.4.1.

The error code is as follows:

2023-07-21T16:11:08.844770Z ERROR chirpstack::integration::http: Posting event failed event=up url=https://servertest.azure-devices.net/devices/deviceid/messages/events?api-version=2020-05-31-preview error=error sending request for url (https://servertest.azure-devices.net/devices/deviceid/messages/events?api-version=2020-05-31-preview&event=up): error trying to connect: Connection reset by peer (os error 104)

Additionally perform a test with the postman software to validate that the endpoint and header work correctly with azure.

Thanks and regards

Imagen1

Are you sure the Azure IoT Hub accepts the ChirpStack JSON payload? I do not have much experience with the IoT Hub, but you could try configure the HTTP endpoint to a https://public.requestbin.com/ endpoint to see if outgoing requests are working + to debug the request that ChirpStack is making. Then you could try to re-create the request to your IoT Hub endpoint with the same payload using Postman.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.