Can I Access Response Headers in Pipedream Actions for Rate Limiting?

This topic was automatically generated from Slack. You can find the original thread here.

TL:DR Is there a way to have access to the response headers in the actions offered by Pipedream?

I’m using the Pipedrive integration with the action to search for persons (https://pipedream.com/apps/pipedrive/actions/search-persons). I’m getting 429 errors from them, but I’d like to access to the headers of the error response during execution.

The use-case is that this process could be triggered by sending an email newsletter to +10k users, so I cannot relay on Pipedream’s queue and I’ll have to pause/throttle the connections myself. But to manage this I need to have access to the values of their response headers https://pipedrive.readme.io/docs/core-api-concepts-rate-limiting?_gl=1lqzrdf_ga**NjEw[…]_ga_LDFBKW963X*MTY3NTQ1MDQyNC4xLjAuMTY3NTQ1MDQyNC4wLjAuMA…

LMK if you need more info. THX!

Hi Diego,

All of our components are open source, so you’re free to modify them as you need. You can find the corresponding code for this component here:

You can also request for this improvement on our public issue tracker: Sign in to GitHub · GitHub

yup. thx! I was wondering if there was something documented to access headers in general. I’ll need then to modify the code. thanks again

No, it’s more like the error will need to surface the rate limit headers, or the this.$emit within the source will need to include the current rate limit usage headers to expose it to your subscribing workflows to respond to