You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We updated the proto definition of our API as such that one message contains a additional field like so:
before:
messageA {
stringname=1;
}
after:
messageA {
stringname=1;
stringdescription=2;
}
Updating the server side first and not updating the client side (react based) leads to the following error:
ConnectError: [invalid_argument] cannot decode message api.v1.A from JSON: key "description" is unknown
at LN (connect-error.js:102:16)
at parse (serialization.js:114:23)
Which breaks the client.
Is there any way to make the client side behave like the go deserializer to simply ignore unknown properties ?
Environment (please complete the following information):
@bufbuild/connect version: (for example, 0.8.6)
@bufbuild/connect-web version: (for example, 0.8.6)
@bufbuild/connect-go version: (for example, 1.7.0) (on the server side)
Describe the bug
We updated the proto definition of our API as such that one message contains a additional field like so:
before:
after:
Updating the server side first and not updating the client side (react based) leads to the following error:
Which breaks the client.
Is there any way to make the client side behave like the go deserializer to simply ignore unknown properties ?
Environment (please complete the following information):
0.8.6
)0.8.6
)1.7.0
) (on the server side)[email protected]
)The text was updated successfully, but these errors were encountered: