user-1
(User 1)
October 3, 2025, 6:38pm
1
This topic was automatically generated from Slack. You can find the original thread here .
Why everytime i do something like this, I will get external user id missing error? Isn’t this the official pipeline documentation suggested implementation as in Connect API Proxy - Pipedream ?
user-1
(User 1)
October 3, 2025, 6:38pm
2
Could you help me and @U03CXTHK4RF
user-1
(User 1)
October 3, 2025, 6:38pm
3
have you passed the external user id as instructed in the doc?
user-1
(User 1)
October 3, 2025, 6:38pm
4
Yes, I have, but that is on later stage where I run the proxy .post request. But when initiing the client, I don’t
user-1
(User 1)
October 3, 2025, 6:38pm
5
And it seems like it is stucked at initing the client, not passing to next stage for proxy post
user-1
(User 1)
October 3, 2025, 6:38pm
6
Okay, this seems weird. I’ll check with the team and get back to you.
user-1
(User 1)
October 3, 2025, 6:38pm
9
but strange tho, I can do things like this
user-1
(User 1)
October 3, 2025, 6:38pm
10
Is it because there is some syntax confusion? I feel like this is a different object from the first client
user-1
(User 1)
October 3, 2025, 6:38pm
11
Hm I’m a little confused on the implementation. Are you initializing the client from the frontend? What version of the SDK?
user-1
(User 1)
October 3, 2025, 6:38pm
14
initialized from frontend
user-1
(User 1)
October 3, 2025, 6:38pm
15
Oh, you need to initialize that client in your server. Weird error though.
user-1
(User 1)
October 3, 2025, 6:38pm
16
import { PipedreamClient } from "@pipedream/sdk";
const client = new PipedreamClient({
externalUserId: user?.id,
tokenCallback: () => connectToken,
});
user-1
(User 1)
October 3, 2025, 6:38pm
18
But this doesn’t work
import { PipedreamClient } from "@pipedream/sdk";
const pdclient = new PipedreamClient({
clientId: process.env.PIPEDREAM_CLIENT_ID,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET,
projectId: process.env.PIPEDREAM_PROJECT_ID,
projectEnvironment: "development",
});
user-1
(User 1)
October 3, 2025, 6:38pm
19
Yea I think that’s expected, you definitely don’t want to expose your Pipedream credentials to your frontend. https://pipedream.com/docs/connect/api-reference/sdks#browser-usage
user-1
(User 1)
October 3, 2025, 6:38pm
20
I seee.
Well I do have this in my flask backend. SO i guess i need to make another endpoint, and for each query, like checking whether a user has connected to an app, my frontend need to call my backend endpoint to retrieve that info right?