HTTP Integration not working

I’ve set up a HTTP integration and set the endpoints to a script on my server (http://example.com/testdata.php) but i’m not seeing any calls from the loraserver. Is there something else I should be doing to get it working?

I’m expecting to see the LoRaServer POST to this script when data is received from a remote node. Is that correct?

Could you please share some log output of the LoRa App Server process?

Thanks brocaar.

I’ve tried for a few days. Can you explain how I can log the output of the process? I’ve tried the usual solutions but can’t get anywhere!

Thanks.

When you’re using the Debian / Ubuntu packages. They are either in /var/log/lora-app-server or you should be able to see them by executing journalctl -f -n 100 -u lora-app-server (in case of systemd).

Great.

Heres a few lines from the process log…

Nov 01 17:51:04 lorawan lora-app-server[3636]: time="2017-11-01T17:51:04Z" level=info msg="handler/mqtt: publishing data-up payload" topic="application/2/node/1234567890986643/rx"
Nov 01 17:51:04 lorawan lora-app-server[3636]: time="2017-11-01T17:51:04Z" level=info msg="handler/http: publishing data-up payload" dev_eui=1234567890986643 url="http://my.example.com/index.html"
Nov 01 17:51:04 lorawan lora-app-server[3636]: time="2017-11-01T17:51:04Z" level=info msg="data-down item requested by network-server, but queue is empty" dev_eui=1234567890986643

So it looks like it’s calling the url but I’m not seeing the connection on the server at my.example.com

To make sure it is not related to your own handler at “http://my.example.com/index.html”, I recommend that you create a Request bin: https://requestb.in and configure this endpoint as your integration.

Thanks brocaar.

It works with Request bin so there must be something going on with the server I am pointing it to. I have no idea what though. A standard browser request works so I guess the integration request should work too?

Hi, is there any way how to setup HTTP integration with elastic?
becasue Chirpstack adds event as query parameter and url looks like:
http://app.xxxxxxxxx.com:9200/humid-temp/_doc?event=up, which is invalid exception path for elastic API and I am getting exception from elastic