Skip to content

The agent does not send data to the Orion Context Broker with a request payload of 566 KB #827

@ludilorenz

Description

@ludilorenz

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

environment:
  - IOTA_CB_HOST=orion
  - IOTA_CB_PORT=1026
  - IOTA_NORTH_PORT=4041
  - IOTA_REGISTRY_TYPE=mongodb
  - IOTA_TIMESTAMP=true
  - IOTA_CB_NGSI_VERSION=v2
  - IOTA_AUTOCAST=true
  - IOTA_MONGO_HOST=mongodb
  - IOTA_MONGO_PORT=27017
  - IOTA_MONGO_DB=iotagent-json-v2
  - IOTA_HTTP_PORT=7896
  - IOTA_PROVIDER_URL=http://iot-agent-v2:4041
  - IOTA_DEFAULT_RESOURCE=/iot/json

Log output

2024-05-06 11:56:09 time=2024-05-06T09:56:09.245Z | lvl=DEBUG | corr=3951c9c6-1404-4c14-b204-e3cc2942c8e5 | trans=3951c9c6-1404-4c14-b204-e3cc2942c8e5 | op=IOTAJSON.HTTP.Binding | from=n/a | srv=fpn | subsrv=/FP4/battery_metrics | msg=Error PayloadTooLargeError handling request: request entity too large | comp=IoTAgent
2024-05-06 11:56:09 time=2024-05-06T09:56:09.842Z | lvl=DEBUG | corr=09b1fb75-89fc-4418-9e02-a9d516ec0902 | trans=09b1fb75-89fc-4418-9e02-a9d516ec0902 | op=IoTAgentNGSI.GenericMiddlewares | from=n/a | srv=fpn | subsrv=/FP4/battery_metrics | msg=Request for path [/iot/about] query [{}] from [localhost:4041] | comp=IoTAgent
2024-05-06 11:56:09 time=2024-05-06T09:56:09.842Z | lvl=DEBUG | corr=09b1fb75-89fc-4418-9e02-a9d516ec0902 | trans=09b1fb75-89fc-4418-9e02-a9d516ec0902 | op=IoTAgentNGSI.DomainControl | from=n/a | srv=n/a | subsrv=n/a | msg=response-time: 1 | comp=IoTAgent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions