Fraunhofer-IIS / libjapi

libjapi is a universal JSON to C API library. It receives newline-delimited JSON (NDJSON) messages via TCP and calls registered C functions. A JSON response is returned for each request. Furthermore, it is also possible to create push services, which asynchronously push JSON messages to the clients subscribed to them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Request with not existent JSON Keyword freezes the client.

fraunhofer-iis-bot opened this issue · comments

In GitLab by @fraunhofer-iis-anon on Mar 13, 2020, 12:33

if request with an JSON-keyword or typo in keyword is send, the Client doesn't end.

Example:

cmd_request = {
    'japi_requesTYPO': 'get_temperature',
    'unit': 'kelvin',
    }

In GitLab by @fraunhofer-iis-anon on Mar 13, 2020, 12:35

mentioned in issue libjapi-demo#1

In GitLab by @cstender on Mar 13, 2020, 16:30

This is the expected behavior. At the moment no fix is planned.

In GitLab by @cstender on Mar 13, 2020, 16:30

closed