Skip to content

Fix ActorProxy AttributeError naming the metaclass instead of the interface - #1209

Open
magic-peach wants to merge 1 commit into
dapr:mainfrom
magic-peach:fix/actor-proxy-attributeerror-names-metaclass
Open

Fix ActorProxy AttributeError naming the metaclass instead of the interface#1209
magic-peach wants to merge 1 commit into
dapr:mainfrom
magic-peach:fix/actor-proxy-attributeerror-names-metaclass

Conversation

@magic-peach

Copy link
Copy Markdown

Description

self._actor_interface is already the interface class, not an instance, so self._actor_interface.class returned its metaclass (ABCMeta) instead of the actor interface's own name in the AttributeError message raised for an unknown method. Use name instead so the error actually names the interface.

Added a test asserting the AttributeError message names the real interface class.

Issue reference

No existing issue tracks this; found while reviewing the actor client proxy.

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

…erface

self._actor_interface is already the interface class, not an instance,
so self._actor_interface.__class__ returned its metaclass (ABCMeta)
instead of the actor interface's own name. Use __name__ instead.

Signed-off-by: Akanksha Trehun <akankshatrehun@gmail.com>
@magic-peach
magic-peach requested review from a team as code owners September 13, 2026 16:16
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.

1 participant