This error pops up when I post a long Json structure.
ERROR in app: Exception on /notify [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "reporter/reporter.py", line 110, in notify
trans.insert([payload])
File "/src/ngsi-timeseries-api/translators/crate.py", line 146, in insert
self.cursor.executemany(stmt, entries)
File "/usr/local/lib/python3.6/site-packages/crate/client/cursor.py", line 67, in executemany
self.execute(sql, bulk_parameters=seq_of_parameters)
File "/usr/local/lib/python3.6/site-packages/crate/client/cursor.py", line 54, in execute
bulk_parameters)
File "/usr/local/lib/python3.6/site-packages/crate/client/http.py", line 304, in sql
content = self._json_request('POST', self.path, data=data)
File "/usr/local/lib/python3.6/site-packages/crate/client/http.py", line 416, in _json_request
_raise_for_status(response)
File "/usr/local/lib/python3.6/site-packages/crate/client/http.py", line 170, in _raise_for_status
error_trace=error_trace)
crate.client.exceptions.ProgrammingError: IllegalArgumentException[Document contains at least one immense term in field="value" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[45, 49, 46, 48, 50, 57, 54, 44, 52, 46, 54, 52, 54, 53, 53, 44, 45, 49, 46, 54, 51, 50, 53, 52, 44, 50, 48, 49, 55, 45]...', original message: bytes can be at most 32766 in length; got 94981]; nested: MaxBytesLengthExceededException[bytes can be at most 32766 in length; got 94981];
Please, note that Orion Context Broker does not present any problem handling the long structures. The error was retrieved from the QuantumLeap component.
Could it be possible to extend the size capacity on the component to handle such long files? Personally need it to deal with accelerometer data.