Skip to content

[Backport release-1.19] Guard against a None RpcError details in DaprWorkflowClient.get_workflow_state - #1293

Open
dapr-bot wants to merge 1 commit into
release-1.19from
backport-1224-to-release-1.19
Open

dapr-bot wants to merge 1 commit into
release-1.19from
backport-1224-to-release-1.19

Conversation

@dapr-bot

Copy link
Copy Markdown
Collaborator

Backport 9646a57 from #1224.

…low_state (#1224)

The async client already checks error.details() before searching it for
'no such instance exists'. The sync client does not, so any RpcError
whose details() returns None, such as UNAVAILABLE when the sidecar is
unreachable, crashes with a TypeError instead of surfacing the real
error.

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
Co-authored-by: Sam Kendziora <sam@diagrid.io>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
(cherry picked from commit 9646a57)
Signed-off-by: dapr-bot <dapr-bot@users.noreply.github.com>
@dapr-bot
dapr-bot requested review from a team as code owners October 15, 2026 15:43
@CasperGN CasperGN self-assigned this Oct 15, 2026
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-1.19@687cf23). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-1.19    #1293   +/-   ##
===============================================
  Coverage                ?   86.66%           
===============================================
  Files                   ?      163           
  Lines                   ?    12919           
  Branches                ?        0           
===============================================
  Hits                    ?    11196           
  Misses                  ?     1723           
  Partials                ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

3 participants