Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTTP-OH3] buffer size overflow with larger JSON #1938

Closed
binderth opened this issue Dec 15, 2020 · 1 comment
Closed

[HTTP-OH3] buffer size overflow with larger JSON #1938

binderth opened this issue Dec 15, 2020 · 1 comment

Comments

@binderth
Copy link

binderth commented Dec 15, 2020

Trying to receive a JSON from Mowas (https://warnung.bund.de/bbk.mowas/gefahrendurchsagen.json), I get the following WARN in log and the channel is still NULL:

2020-12-15 13:34:33.920 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'https://warnung.bund.de/bbk.mowas/gefahrendurchsagen.json' (method='GET', content='null') failed: Buffering capacity 2097152 exceeded

The binding doesn't seem to give me the opportunity to define the buffer size.

My Thing and channel definition:

UID: http:url:mowas
label: HTTP Gefahren MoWas
thingTypeUID: http:url
configuration:
  authMode: BASIC
  ignoreSSLErrors: false
  baseURL: https://warnung.bund.de/bbk.mowas/gefahrendurchsagen.json
  refresh: 600
  commandMethod: GET
  contentType: application/json
  timeout: 3000
channels:
  - id: mowasJSON
    channelTypeUID: http:string
    label: JSON von Mowas
    description: ""
    configuration: {}
@binderth
Copy link
Author

sorry, wrong here... closed, can be deleted at will.

here's the correct link:
openhab/openhab-addons#9389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant