Skip to content

Bug: Shopify OAuth connection succeeds but Connect SDK reports empty error {} #280

@wenlongbrother

Description

@wenlongbrother

Summary

When using the Pipedream Connect SDK (@pipedream/sdk, version is 2.3.1) with the Shopify oauth app integration, the OAuth flow completes successfully — the connected account is actually created in Pipedream — but the Connect popup reports an error and triggers onError with an empty error message.

This leads to a misleading UX where the connection appears to have “failed,” even though it succeeded internally.

Image

Observe:

The Shopify account appears in connected accounts after refreshing. ✅

But the Connect popup shows red banner:
“Connection failed. Please retry or contact support”. ❌

The error object received by SDK is:

{
  message: "",
  raw: "{}"
}

Network trace shows Pipedream connect.html iframe sends { type: "error", error: "" }

Expected Behavior

After successful OAuth and connection creation,
onSuccess should be triggered and no error should be emitted.

onError should not fire with empty {} error when the account is created successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions