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
The UI shows "Encoded failure" but this is an error thrown by the worker when the UI tries to get the list of queries the workflow exposes with queryType: "@@temporal-internal__list
I get the same error when I use the client to send a query that is not registered in the workflow, and the client configuration has the data_converter which failure_converter_class has encode_common_attributes=True
Create a new DefaultFailureConverter with encode_common_attributes=True
class FailureConverterWithDecodedAttributes(temporalio.DefaultFailureConverter):
def __init__(self) -> None:
super().__init__(encode_common_attributes=True)
Add failure_converter_class=FailureConverterWithDecodedAttributes to the client.
client = await Client.connect(
"localhost:7233",
# Use the default converter, but change the codec
data_converter=dataclasses.replace(
temporalio.converter.default(),
payload_codec=EncryptionCodec(),
failure_converter_class=FailureConverterWithDecodedAttributes,
),
)
After running a workflow, try to send a query that does not exist for the workflow.
Hrmm, so this is a general Temporal Core SDK issue where query failures use the Failure structure but the server doesn't support that for query failures. I will confer with the team on this.
I believe we have confirmed that this is due to the UI using query failures to populate the query list but encrypting these failures is incompatible with that. We have filed an issue with the UI team to support failure decryption.
What are you really trying to do?
List workflow queries using the UI (Queries tab)
Describe the bug
The UI shows "Encoded failure" but this is an error thrown by the worker when the UI tries to get the list of queries the workflow exposes with
queryType: "@@temporal-internal__list
I get the same error when I use the client to send a query that is not registered in the workflow, and the client configuration has the
data_converter
whichfailure_converter_class
hasencode_common_attributes=True
Minimal Reproduction
clone https://github.com/temporalio/samples-python/tree/main/encryption
Add the following modifications:
failure_converter_class=FailureConverterWithDecodedAttributes
to the client.After running a workflow, try to send a query that does not exist for the workflow.
The query will fail with "Encoded failure"
The text was updated successfully, but these errors were encountered: