@marc-berg
Wenn ich die Api anpinge von der Console des IOB, dann funktioniert es:
/opt/iobroker# curl -v https://api.tibber.com/v1-beta/gql
* Trying 52.30.118.16:443...
* Connected to api.tibber.com (52.30.118.16) port 443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=*.tibber.com
* start date: Jul 30 00:00:00 2025 GMT
* expire date: Aug 25 23:59:59 2026 GMT
* subjectAltName: host "api.tibber.com" matched cert's "*.tibber.com"
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M04
* SSL certificate verify ok.
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /v1-beta/gql]
* h2h3 [:scheme: https]
* h2h3 [:authority: api.tibber.com]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x55d7045bece0)
> GET /v1-beta/gql HTTP/2
> Host: api.tibber.com
> user-agent: curl/7.88.1
> accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/2 400
< date: Fri, 01 Aug 2025 10:51:27 GMT
< content-type: application/json; charset=utf-8
< content-length: 148
< x-powered-by: Express
< access-control-allow-origin: *
< cache-control: no-store
< etag: W/"94-npaMbIB5erTaplHAdDd5m/mgtR8"
< vary: Accept-Encoding
<
{"errors":[{"message":"GraphQL operations must contain a non-empty `query` or a `persistedQuery` extension.","extensions":{"code":"BAD_REQUEST"}}]}
* Connection #0 to host api.tibber.com left intact
Jemand eine Idee was ich im unifi umstellen muss?