I’m struggling to make an action with pipedream that has multiple props (to create a dropdown option).
Here is my gist for the code:
When I attempt to publish I see this on the console:
pd publish generateLuluAuthToken.js
component create api call responded with status: 400, body: {“error”:"{“name”:“UserError”,“message”:“unsupported array element type for prop api_type: object”}"}
@pierce thanks for your help. I just figured that out on my own haha but there is still an error.
Here is what it looks like now:
The error message is different now:
pd publish generateLuluAuthToken.js
component create api call responded with status: 400, body: {"error":"{\"name\":\"UserError\",\"message\":\"unsupported array element type for prop api_type: object\"}"}
oops, the original error before I added the [] to “options” was actually:
component create api call responded with status: 400, body: {"error":"{\"name\":\"UserError\",\"message\":\"options not supported for prop api_type\"}"}
After alot of trial and error, I found that I had to set the type to “string” and then the options array worked! So there seems to be an issue with the docs.
I discovered this by looking through the github repo of all the other components / actions that have been written by the community / staff.