Skip to content
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

[ISSUE] utils.ts?61cd:83 Uncaught (in promise) M_MISSING_PARAM: MatrixError: [400] 1 validation error for PutBody device_id field required #2809

Closed
menturion opened this issue Oct 26, 2022 · 2 comments

Comments

@menturion
Copy link

synapse: v1.70.0
matrix-js-sdk: v21.0.0

After I updated to Synapse v1.70.0 I get the below issue shown in the console:

fetch.ts?12e2:62 PUT /_matrix/client/unstable/org.matrix.msc2697.v2/dehydrated_device 400 (Bad Request)
utils.ts?61cd:83 Uncaught (in promise) M_MISSING_PARAM: MatrixError: [400] 1 validation error for PutBody device_id field required (type=value_error.missing) (/_matrix/client/unstable/org.matrix.msc2697.v2/dehydrated_device)
    at parseErrorResponse (webpack-internal:///319:89:12)
    at MatrixHttpApi.requestOtherUrl (webpack-internal:///315:289:78)

... and the following error msg in homeserver.log:

2022-10-26 14:16:56,492 - synapse.http.server - 108 - INFO - PUT-625 - <SynapseRequest at 0x7fd1fef34100 method='PUT' uri='/_matrix/client/unstable/org.matrix.msc2697.v2/dehydrated_device' clientproto='HTTP/1.1' site='8448'> SynapseError: 400 - 1 validation error for PutBody device_id field required (type=value_error.missing)

@menturion menturion changed the title [ISSUE] utils.ts?61cd:83 Uncaught (in promise) M_MISSING_PARAM: MatrixError: [400] 1 validation error for PutBody device_id field required (type=value_error.missing) (/_matrix/client/unstable/org.matrix.msc2697.v2/dehydrated_device) at parseErrorResponse (webpack-internal:///319:89:12) at MatrixHttpApi.requestOtherUrl [ISSUE] utils.ts?61cd:83 Uncaught (in promise) M_MISSING_PARAM: MatrixError: [400] 1 validation error for PutBody device_id field required Oct 26, 2022
@t3chguy
Copy link
Member

t3chguy commented Oct 31, 2022

This looks like a bug in Synapse, the MSC doesn't say anything about a request param of device_id for the PUT request.
https://github.com/uhoreg/matrix-doc/blob/dehydration/proposals/2697-device-dehydration.md#dehydrating-a-device

Tracked in matrix-org/synapse#14334

@t3chguy t3chguy closed this as completed Oct 31, 2022
@menturion
Copy link
Author

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants