Skip to content

fix(pipedream): accept source_connection_id kwarg - #1777

Open
hiddeco wants to merge 1 commit into
mainfrom
fix/pipedream-source-connection-id-kwarg
Open

fix(pipedream): accept source_connection_id kwarg#1777
hiddeco wants to merge 1 commit into
mainfrom
fix/pipedream-source-connection-id-kwarg

Conversation

@hiddeco

@hiddeco hiddeco commented May 6, 2026

Copy link
Copy Markdown
Collaborator

PipedreamAuthProvider.get_auth_result overrode the base method without accepting source_connection_id. The lifecycle caller in domains/sources/lifecycle.py:393 always passes it (it's part of BaseAuthProvider.get_auth_result's contract since the introduction of the Custom auth provider, which scopes credentials per connection), so every Pipedream-backed sync raised TypeError: get_auth_result() got an unexpected keyword argument 'source_connection_id' and failed before reaching the credential fetch.

Production saw ~44 of these per day, contributing to the chronic sync-worker failure rate. Pipedream identifies accounts by source slug and project rather than connection id, so the value is forwarded to get_creds_for_source (already accepted there) but otherwise unused. A regression test in test_pipedream exercises the kwarg path.

`PipedreamAuthProvider.get_auth_result` overrode the base method
without accepting `source_connection_id`. The lifecycle caller in
`domains/sources/lifecycle.py:393` always passes it (it's part of
`BaseAuthProvider.get_auth_result`'s contract since the introduction
of the Custom auth provider, which scopes credentials per
connection), so every Pipedream-backed sync raised `TypeError:
get_auth_result() got an unexpected keyword argument
'source_connection_id'` and failed before reaching the credential
fetch.

Production saw ~44 of these per day, contributing to the chronic
sync-worker failure rate. Pipedream identifies accounts by source
slug and project rather than connection id, so the value is
forwarded to `get_creds_for_source` (already accepted there) but
otherwise unused. A regression test in `test_pipedream` exercises
the kwarg path.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

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.

2 participants