You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessing https://myopenhab.org/api/items (after a login) from Firefox 70.0, Chrome 78.0.3904.87 and curl delivers an incomplete JSON datastream, i.e. ending on something like ... "editable":false,"type":"DateTime","name":"IcurrentDate","la. In consequence any JSON parser will fail interpreting the response.
This problem seems to occur less if the data being transferred is reduced, i.e. if there are fewer items, chances are higher that a retry will deliver a complete and valid JSON.
According to openhab/openhab-alexa#253 this is a known issue and the Alexa skill developers tried to work around the issue using a 3-retries-method. For me, this still does not work -- maybe due to my many items in openHAB.
With 20 retries I could get https://myopenhab.org/api/items to deliver a 256KB JSON with my items (already a stripped down version).
Here are the headers of request and response in Firefox:
Accessing https://myopenhab.org/api/items (after a login) from Firefox 70.0, Chrome 78.0.3904.87 and curl delivers an incomplete JSON datastream, i.e. ending on something like
... "editable":false,"type":"DateTime","name":"IcurrentDate","la
. In consequence any JSON parser will fail interpreting the response.This problem seems to occur less if the data being transferred is reduced, i.e. if there are fewer items, chances are higher that a retry will deliver a complete and valid JSON.
According to openhab/openhab-alexa#253 this is a known issue and the Alexa skill developers tried to work around the issue using a 3-retries-method. For me, this still does not work -- maybe due to my many items in openHAB.
With 20 retries I could get https://myopenhab.org/api/items to deliver a 256KB JSON with my items (already a stripped down version).
Here are the headers of request and response in Firefox:
The text was updated successfully, but these errors were encountered: