staromeste / homebridge-http-advanced-accessory

Supports all devices on HomeBridge Platform / Bridges devices to http
Apache License 2.0
65 stars 22 forks source link

Invalid header value char since updating on NodeJS 16.19.0 #45

Open brandungskieker opened 1 year ago

brandungskieker commented 1 year ago

Hey everyone, since I updated NodeJS on 16.19.0 I get a parsing Error for a JSON request that worked best before updating (.

code: 'HPE_INVALID_HEADER_TOKEN', reason: 'Invalid header value char'

Is there any issue known that's handling this? Or can anyone help?

My Configuration:

"accessory": "HttpAdvancedAccessory",
    "name": "Außentemperatur",
    "service": "TemperatureSensor",
    "forceRefreshDelay": 150,
    "debug": false,
    "urls": {
        "getCurrentTemperature": {
            "url": "http://bsb-lan/[hash]/JQ=8700",
            "mappers": [
                {
                    "type": "jpath",
                    "parameters": {
                        "jpath": "$.8700.value"
                    }
                }
            ]
        }
    }

Actual JSON Response Header:

{
  "content-type": "application/json; charset=utf-8"
}

Body:

{
  "8700": {
    "name": "Außentemperatur",
    "error": 0,
    "readonly": 1,
    "value": "8.4",
    "unit": "°C",
    "desc": "",
    "dataType": 0
  }
}