Hey, I noticed an issue when trying to use the frontend client for the first time. When creating a client with createFrontendClient()
, the resulting client will always fail to send any valid API requests, and will always receive 404 errors.
This is because it always leaves the project_id
part of the URL empty, e.g. it will send GET https://api.pipedream.com/v1/connect//components
instead of GET https://api.pipedream.com/v1/connect/my-project-id/components
.
It appears that this is because the project ID is being set to the empty string here, in src/wrapper/Pipedream.ts
. Then later on (e.g. here in Client.ts), this empty string is passed to the URL to which the request is made.
I confirmed this by removing clientOpts.projectId = "";
locally and npm link
ing to my app. The project ID was then present in the URL (although I then received CORS errors).
This is fairly easy to reproduce - create a client with createFrontendClient()
and try to send a request.