Skip to content

bug: strange errors when light pushing messages with payload >= 300 kb #2565

Closed
@fbarbu15

Description

@fbarbu15

Problem

When the payload is >= 300 kb the light push fails with some strange messages

Payload ~= 300 KB

payload=$(head -c $((1024 * 225)) /dev/urandom | base64 -w 0) && \
echo "{\"pubsubTopic\": \"/waku/2/rs/0/0\", \"message\": {\"payload\": \"${payload}\", \"contentTopic\": \"/myapp/1/latest/proto\", \"timestamp\": 1712135330213797632}}" > /tmp/message_payload.json && \
curl -v -X POST "http://127.0.0.1:56923/lightpush/v1/message" -H "Content-Type: application/json" -d @/tmp/message_payload.json

Error is Failed to request a message push: Exception reading: Stream Remotely Closed! with 503 Service Unavailable

  1. Payload > 300 KB
payload=$(head -c $((1024 * 250)) /dev/urandom | base64 -w 0) && \ \
echo "{\"pubsubTopic\": \"/waku/2/rs/0/0\", \"message\": {\"payload\": \"${payload}\", \"contentTopic\": \"/myapp/1/latest/proto\", \"timestamp\": 1712135330213797632}}" > /tmp/message_payload.json && \
curl -v -X POST "http://127.0.0.1:56923/lightpush/v1/message" -H "Content-Type: application/json" -d @/tmp/message_payload.json

Error is Push request timed out with 503 Service Unavailable
light_push_node_that_sends_the_messages.log
relay_node.log

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions