openhab / openhab-vscode

VS Code extension for openHAB configuration files
https://marketplace.visualstudio.com/items?itemName=openhab.openhab
Eclipse Public License 2.0
159 stars 47 forks source link

API access gets 400 with swag reverse proxy #326

Open Herschdorfer opened 9 months ago

Herschdorfer commented 9 months ago

I have configured the settings as followed:

    "openhab.connection.host": "openhab.****.or.at",
    "openhab.connection.port": 443,
    "openhab.connection.authToken": "oh..."

I use docker with a SWAG instance for reverse proxying and I can reach the API from the same machine on Chome via https://openhab.****.or.at/rest/.

Expected Behavior

API access in VS Code.

Current Behavior

I keep getting http 400 failures.

---
    Error:
        Error while connecting to openHAB REST API.

    Message:
        Error: Request failed with status code 400
---

Possible Solution

N/A

Steps to Reproduce (for Bugs)

N/A

Context

N/A

Your Environment

Ubuntu 23.04 VS Code 1.82.0