Support Request: Cannot read properties of null (reading 'json')
### Describe Your Problem

I am constantly getting an error message from the Bot device. How can I fix this?

### Relevant log output

```shell
[9/13/2024, 12:18:57 PM] [SwitchBot] Bot: 2 AC Door failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "Cannot read properties of null (reading 'json')"
```


### Config for homebridge-switchbot

```shell
{
    "name": "SwitchBot",
    "credentials": {
        "token": "removed",
        "secret": "removed",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "devices": [
            {
                "deviceId": "E55460B62D51",
                "configDeviceName": "SB Hub 2",
                "configDeviceType": "Hub 2",
                "connectionType": "OpenAPI",
                "hub": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "history": true,
                "firmware": "1.4-2.3",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "D2353334687D",
                "configDeviceName": "2 AC Door",
                "configDeviceType": "Bot",
                "connectionType": "OpenAPI",
                "bot": {
                    "mode": "press",
                    "deviceType": "door",
                    "allowPush": false,
                    "doublePress": 1
                },
                "maxRetries": 0,
                "delayBetweenRetries": 3,
                "firmware": "6.6",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "EE927C000563",
                "configDeviceName": "SB LR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "D1B95C6CA12E",
                "configDeviceName": "SB Balcony",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "FD81452A7817",
                "configDeviceName": "SB BathR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "DEB95B5130DE",
                "configDeviceName": "SB BedR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "pushRate": 360
            },
            {
                "deviceId": "ED5B287A4053",
                "configDeviceName": "SB DR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "EB7427216D7B",
                "configDeviceName": "SB Office",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "F4CA70379451",
                "configDeviceName": "SB SBathR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            },
            {
                "deviceId": "CF160F90171D",
                "configDeviceName": "SB SR",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4"
            },
            {
                "deviceId": "C570785DCA9D",
                "configDeviceName": "SB Kitchen",
                "configDeviceType": "WoIOSensor",
                "connectionType": "OpenAPI",
                "iosensor": {
                    "convertUnitTo": "FAHRENHEIT"
                },
                "maxRetries": 5,
                "delayBetweenRetries": 3,
                "history": true,
                "firmware": "0.4",
                "refreshRate": 360,
                "pushRate": 360
            }
        ],
        "pushRate": 1
    },
    "_bridge": {
        "username": "0E:42:87:77:38:D0"
    },
    "platform": "SwitchBot"
}
```


### Screenshots

_No response_

### Device & Model

SwitchBot Bot FW v6.6, Hub 2 FW v1.4-2.3

### Node.js Version

v20.17.0

### NPM Version

N/A

### Homebridge Version

v1.8.4

### Homebridge SwitchBot Plugin Version

v3.8.1

### Homebridge Config UI X Plugin Version

v4.58.0

### Operating System

Docker