-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Request/Response to Meta message flow issue #1506
Comments
Initialise the statusCode of the request always to 202 along with state: 'PENDING' when it is created. Remove setting the statusCode to 202 that was only in the http put handling code path. Fixes #1506.
Please check the linked PR #1511 if it fixes the issue for you.
|
@tkurki href is documented but only mentioned for HTTP and not for 'WebSocket and other full-duplex protocols'. I would also add statusCode 202 to the list of possible codes. By the way, I can submit Spec PRs and help. I had actually fixed this very problem and was just about to submit it ;) Let me know how to best proceed next time. |
@tkurki what's the best way o test a PR? Simply get the branch, run and validate or is there a special way to get the PR code? |
Initialise the statusCode of the request always to 202 along with state: 'PENDING' when it is created. Remove setting the statusCode to 202 that was only in the http put handling code path. Fixes #1506.
The request/response 'PENDING' state does not have a statusCode key and value.
Steps to reproduce
NOTE: Set yourself up to monitor webSocket delta request/response message sequence sent by the server.
Request
Pending
Completed
Issue
In step 2 when you receive the 'PENDING' request/response answer to your PUT, the 'PENDING' state message does not have a statusCode key. This behaviour if different than when using PUT to other paths such path values or request device access and login. The message also include a href key - not sure if it's abnormal. It does not seem to cause problems but it's the first time I see this key and it's not mentioned in the specs.
Expected behaviour
statusCode key in PENDING state should be present and have a 202 code, or some other code indicating pending state to align with other types of response flow or remove the PENDING state message from the flow *if possible.
The text was updated successfully, but these errors were encountered: