This topic was automatically generated from Slack. You can find the original thread here.
Hello, I am developing a custom action to update data on custom objects on hubspot. Basically I forked the code inside: pipedream/components/hubspot at master · PipedreamHQ/pipedream · GitHub removed the unnecessary code and files and changed the objects actions to achieve what I want.
The folder structure and everything else is pretty much the same and everything seems to be working except for the request to Hubspot which throws an auth error. I think that I’m missing something or doing something wrong. What is the right approach to build my own actions using the default hubspot app methods? Cause I think the problem is that I rebuild the _getHeaders and makeRequest methods and basically I’m not using the managed auth.
Hello , if you can share your code it would be a great help.
I would recommend you to read through Pipedream component API reference to understand how Pipedream component is capable of, especially the app props section, which manage your credentials.
Last but not least, if you think Pipedream default hubspot action needed any improvement to support your usecase, feel free to submit us a ticket here: Sign in to GitHub · GitHub
Based on what you shared, maybe I just have to change the hubspot-custom.app.mjs to use the default app prop and default methods and leave the custom methods that I already implemented. But one thing that I’m not understanding and it’s not working is when I add the app prop to that hubspot-custom.app it’s throwing the following error:
hubspot-custom.app.mjs is the file where I need the auth from Pipedream, but if I configure the hubspot prop like in the image below it throws the error that I sent in the message above in the terminal when I run the command pd dev action/get-pet/get-pet.mjs