Skip to content

API access gets 400 with swag reverse proxy #326

@Herschdorfer

Description

@Herschdorfer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions