-
Notifications
You must be signed in to change notification settings - Fork 89
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
The agent does not send data to the Orion Context Broker with a request payload of 566 KB #827
Comments
could be due to ContextBroker, as seen here However, ContextBroker limits requests to 1MB size (see https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/user/known_limitations.md#request-maximum-size) and the size mentioned in the issue is smaller (566KB). Could you provide the 566KB request you are using in curl format, please (maybe with a link to https://pastebin.com)? In addition, increasing the log level in Orion to INFO level may provide extra info (this link may be useful: https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/admin/management_api.md#log-configs-and-trace-levels) |
I'm removing the "bug" label due to this is (by the moment) expected behaviour. |
In addition, could you provide the docker-compose.yml you are using, please? It may be needed. |
I had already tried to increase the maximum request size of Orion with the command inReqPayloadMaxSize within the docker compose, but I received the same error. I tried setting the log level to INFO, but Orion does not show me any messages when I try to send data. Regarding the data, unfortunately I cannot share it, I can say that it is a CSV file of 1147 rows and 16 columns converted to a JSON and then sent to the agent. The payload sent to the agent have 20633 rows, I don't know if this information is useful. |
This is the docker-compose.yml I am using:
|
After investigation, it seems is related with express middlewre in IOTA (i.e. it's not related with Orion Context Broker). This PR would fix the issue telefonicaid/iotagent-node-lib#1608 |
Additional PRs: PR #828 (IOTA-JSON) and PR telefonicaid/iotagent-ul#675 (IOTA-UL) |
@ludilorenz the issue should be now solved in the latest docker available at |
I tried to send the data and everything went well, I was able to retrieve the data from Orion correctly. I will proceed to resolve the issue. |
IoT Agent JSON version the issue has been seen with
3.2.0
Bound or port used (API interaction)
Northbound (Provision API and NGSI Interactions)
NGSI version
NGSIv2, NGSI-LD
Are you running a container?
Yes, I am using a contaner (Docker, Kubernetes...)
Image type
normal
Expected behaviour you didn't see
Sending data from the agent to the Context Broker and subsequent creation/update of the entity
Unexpected behaviour you saw
Orion does not receive the request (there are no logs from Orion) and an error code 500 is returned with the following message:
{
"name": "PayloadTooLargeError",
"message": "request entity too large"
}
Steps to reproduce the problem
No response
Configs
Log output
The text was updated successfully, but these errors were encountered: