UpdateTwinWithLiveResponse mapper consuming response so that client runs into timeout #2332
-
|
Hi @thjaeckle, we are adopting the use of live channel for HTTP get requests of features. We also want to update the latest twin state with the live response. In https://eclipse.dev/ditto/2021-12-22-live-channel-condition.html there was mentioned, that the UpdateTwinWithLiveResponse mapper is creating a merge command in addition to the live response. So we were hoping that the twin gets updated on the fly while a client is using the live channel. Unfortunately, it seems that the mapper is transforming the response into a merge command - thus the original response message is not forwarded to the client. So in case of a timeout != 0, the client will run into a timeout. When we remove the mapper in the connection, the client gets the response as expected. The workflow for the client gets a bit uncomfortable then. You need first to do a call with
Thanks for the feedback, Thomas |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
How is your connection configured? |
Beta Was this translation helpful? Give feedback.
How is your connection configured?
I think the
UpdateTwinWithLiveResponsemapper should in such a use case be added as an additional payload mapper, leaving theDittoone intact (to answer the original request normally).