hi all, i created a component using CLI’s comman pd init app myapphere.
then created “2 actions” and “2 sources” with CLI pd init source/action .
now i want to test this in pipdream with pd dev myapphere.
now in pipdream, i’m creating workflow and selected myapphere but no option to select what source to pick.
any idea what im doing worng?
Hi @davidharp33r , you can go through Pipedream Quick Start here to have a sample source
And also you can reference to Pipedream’s existing source such as the Slack source here
pierce
(Pierce)
January 9, 2023, 2:42pm
3
Hi @davidharp33r
First off, welcome to the Pipedream community. Happy to have you!
When you ran pd dev myapphere, it not only published your source’s code, but it actually instantiated a new source.
You can see that your source is running under Sources in your Pipedream dashboard.
To use your newly created source in a workflow, choose USE ONE OF YOUR EXISTING SOURCES on the workflow trigger:
Then you should be able to view and select your source you deployed.
thanks @vunguyenhung and @pierce
thanks that works… i was able to test the event by clicking “RUN NOW” button in the /sources/my_source_id page. the json response was in the logs tab too
but im running into new error when creating a new workflow with that source -
“trigger needs configuring”. any idea where i can find more details about the issue?
pierce
(Pierce)
January 9, 2023, 6:58pm
5
Hi @davidharp33r
Glad to hear you’ve found it. That error means that the source is missing configuration for one or more props that are defined in the source’s code.
When you pd deploy or pd dev the source, it should guide you to make those configurations with text prompts or dropdowns.
You can also update a source’s configuration in the Configuration area of the source, on the right hand side you can define the missing values.
thanks @pierce ,
yeah i was asked to select value for the configuration during pd dev.
but in the configuration page of source, it’s like disabled.
the props.teamId is in .app.mjs file and it’s a method with API call for the options
pierce
(Pierce)
January 11, 2023, 3:48pm
7
Hi @davidharp33r
That is strange, can you share your JS console / network tab when you have the source configuration page open?
I wonder if you’re hitting a bug in our frontend.
hi @pierce , here’s the screenshot of console and network tab of source’s configuration page.
i should mention that i can emit event in the Events tab