Closed brunoshine closed 3 weeks ago
It seems that this also happens with bindings. I have a MQTT Input binding where I have placed a 132kb image base64 string on the body of message topic, and with this the binding does not get triggered. If I remove the base64 string then the binding gets called.
Any thoughts?
thanks
I am able to reproduce this locally. Tried with both gRPC and HTTP. The message does gets published, and even comes to Dapr (as part of debug logs):
DEBU[0009] Processing Redis message 1709193127018-0 app_id=subscriber component="pubsub (pubsub.redis/v1)" instance=Shubhams-MacBook-Pro-3.local scope=dapr.contrib type=log ver=1.12.5
However, it never reaches the application. I am using a 1MB payload.
import express from 'express';
import bodyParser from 'body-parser';
const APP_PORT = process.env.APP_PORT ?? '8080';
const app = express();
app.use(bodyParser.json({ type: 'application/*+json', limit: "50mb" }));
// app.use(bodyParser.urlencoded({ limit: "50mb" }));
app.get('/dapr/subscribe', (_req, res) => {
res.json([
{
pubsubname: "pubsub",
topic: "test",
route: "/events"
}
]);
});
// Dapr subscription routes orders topic to this route
app.post('/events', (req, res) => {
console.log("Subscriber received:", req.body.data);
res.sendStatus(200);
});
app.listen(APP_PORT);
We also have the same configuration in JS-SDK for bodyParser, so this needs further investigation why HTTP (and then also gRPC for some reason) is not working.
Hi @shubham1172 is there any temporary workaround? Thanks
@brunoshine I don't have a workaround for now, but I will further investigate this and update this issue. Thanks for your patience.
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.
Expected Behavior
Publishing a large message that, for instance, has a base64 image string should trigger the subscriber.
Publisher
Subscriber:
command:
Redis PubSub Component Definition
Actual Behavior
Although the message get published to Redis stream the subscriber does not get triggered. In this test we are using a base64 image that is around 150kb.
If I just set the
payload
topayload: ""
the subscriber gets triggered.Steps to Reproduce the Problem
payload
on the publisher.test
.payload
to be emptypayload:""
test
.