-
Notifications
You must be signed in to change notification settings - Fork 407
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
Fail to decode empty response to a Read operation #1622
Comments
Thx for reporting 🙏. For For |
The Object Instance inconsistent behavior is fixed by #1624. I let this issue open waiting for the |
I integrated #1624 in Issue was closed automatically I reopen it because :
|
While looking into #1633, I also checked what happens when an empty payload is sent in a Read Response/Observe Response/Notify. This is what I came across (with Leshan 2.0.0-M15):
|
Version(s)
2.0.0-SNAPSHOT (leshan.eclipseprojects.io)
Which components
leshan.eclipseprojects.io
Tested With
custom CoAP server
What happened
When performing a Read operation returning an empty response, Leshan returns an "failed to decode" error in some case.
I tested a Read on an empty Object (no Object Instance), an empty Object Instance (no readable Resource, object ID 7), and an empty multiple Resource (no Resource Instance).
The response is always a 2.05 content with or witout a content-format option, and with or without a payload.
How to reproduce
No response
Relevant Output
No response
The text was updated successfully, but these errors were encountered: