Join-request to join-server error: http post error: Post tcp://127.0.0.1:1883: unsupported protocol scheme tcp

Hello,

I have a gateway sending messages correctly to Lora Gateway Bridge and it forwards messages just fine to Lora Server. However, an error occurs when Lora Server tries to communicate with Lora App Server:

$ journalctl -f -n 100 -u loraserver

log:

Aug 07 12:20:50 SRV-LORA loraserver[16269]: time="2019-08-07T12:20:50-03:00" level=info msg="gateway/mqtt: uplink frame received"
Aug 07 12:20:50 SRV-LORA loraserver[16269]: time="2019-08-07T12:20:50-03:00" level=info msg="packet(s) collected" dev_eui=0002ddf89fc4da5f gw_count=1 gw_ids=c0ee40ffff294303 mtype=JoinRequest
Aug 07 12:20:50 SRV-LORA loraserver[16269]: time="2019-08-07T12:20:50-03:00" level=error msg="processing uplink frame error" data_base64="AIH4AdB+1bNwX9rEn/jdAgC5y08lvqs=" **error="join-request to join-server error: http post error: Post tcp://127.0.0.1:1883: unsupported protocol scheme \"tcp\""**

I understand that a POST request should be requested to a http[s] scheme, but I am a bit confuse here why it is trying to request it to a tcp scheme.

My Lora App Server and Lora Server configuration are mostly the default ones accordingly to loraserver.io guides.

Thank you very much in advance.

There are two things wrong with this.

Port 1883 is used for unsecured MQTT.

So it’s both wrong if something is actually trying to speak HTTP to that service, and also wrong for secured MQTT traffic to be trying to use port 1883, when MQTT-over-SSL goes to port 8883

Likely some ports configuration for components of the installation got mixed up such that some internal connection which does use http is mistakenly talking to the MQTT broker’s address and port when it should be talking to the join server’s address and port.

Or else the error message is misleading, saying http when it actually isn’t, and the problem is merely trying to speak the SSL-wrapped version of MQTT to the non-SSL port. But that seems unlikely as the message is preceded by one indicating that MQTT is already connected and working.

1 Like