thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

Rest connector with different http headers #650

Closed klonhj2015 closed 2 years ago

klonhj2015 commented 2 years ago

Describe the bug When we use rest connector, the http request only supports the header of application/json. Because the connector converts request to json first, then it will return code 415.

Connector name (If bug in the some connector): [REST Connector]

Versions (please complete the following information):

samson0v commented 2 years ago

Hi @klonhj2015, REST connector works only with JSON data. If you want to use Gateway with other data formats you can write your custom converter.