AxiosError - 429 Code "Too Many Requests"

I am receiving a 429 code error. See below. Once a day, a MySQL database table gets around 1-50 updates. I received this error after 2 updates.

Would increasing the QPS for this request resolve this issue? Or is this due to a limit on the MySQL source? Any advice is appreciated, thank you.


AxiosError - Request failed with status code 429

“Too Many Requests”

    at null.settle (/pipedream/dist/code/1a94e07e06d2d8bdfc4d714ef83dba29a7bded23ce7081a8c55a21bda0e698c0/node_modules/.pnpm/axios@1.6.8/node_modules/axios/dist/node/axios.cjs:1966:12)
    at IncomingMessage.handleStreamEnd (/pipedream/dist/code/1a94e07e06d2d8bdfc4d714ef83dba29a7bded23ce7081a8c55a21bda0e698c0/node_modules/.pnpm/axios@1.6.8/node_modules/axios/dist/node/axios.cjs:3065:11)
    at IncomingMessage.emit (node:events:530:35)
    at null.endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at null.callAxios (/pipedream/dist/code/1a94e07e06d2d8bdfc4d714ef83dba29a7bded23ce7081a8c55a21bda0e698c0/node_modules/.pnpm/@pipedream+platform@1.6.2/node_modules/@pipedream/platform/dist/axios.js:110:26)
    at Object.makeBatchCommands (file:///pipedream/dist/code/1a94e07e06d2d8bdfc4d714ef83dba29a7bded23ce7081a8c55a21bda0e698c0/code/fibery.app.mjs:129:24)
    at Object.updateEntities (file:///pipedream/dist/code/1a94e07e06d2d8bdfc4d714ef83dba29a7bded23ce7081a8c55a21bda0e698c0/code/actions/common/common-entities.mjs:83:24)
    at null.executeComponent (/var/task/launch_worker.js:287:22)
    at MessagePort.messageHandler (/var/task/launch_worker.js:786:28)

Hi @sub-strata,

The 429 Too Many Requests error you’re encountering indicates that you’re hitting a rate limit, but it’s important to clarify the context of where this limit is being hit. Based on the details you’ve provided, it seems like the error is not directly related to the MySQL source itself but rather to an HTTP request made to an external service, possibly Fibery, given the mention of fibery.app.mjs in the stack trace.

Increasing the Queries Per Second (QPS) limit could potentially resolve the issue if it’s related to hitting Pipedream’s HTTP request limits. Pipedream’s default QPS limit for HTTP triggers is an average of 10 requests per second, with some flexibility for short bursts of traffic. If your workflow’s design results in spikes that exceed this limit, you might encounter the 429 error.

However, since the error stack trace mentions Fibery, it’s also possible that you’re hitting rate limits imposed by the Fibery API. In this case, increasing the QPS limit on Pipedream’s end wouldn’t resolve the issue if the limitation is on Fibery’s side. Fibery, like many APIs, likely has its own rate limits to prevent abuse and ensure service stability.

To address the issue, consider the following steps:

  1. Identify the Source of the Rate Limiting: Confirm whether the rate limit is being hit on Pipedream’s side or Fibery’s. This will determine the next steps. If the error occurs when making requests to Fibery, review Fibery’s documentation or support resources for information on their rate limits.

  2. Implement Retry Logic with Exponential Backoff: If you control the application making the requests (in this case, your Pipedream workflow), implement a retry strategy with exponential backoff. This strategy involves retrying the request after a delay, with the delay duration increasing exponentially after each failed attempt. This can help mitigate hitting rate limits during periods of high request volume.

  3. Request a Rate Limit Increase: If you’ve identified that you’re hitting Pipedream’s rate limits and need a higher limit to support your use case, you can reach out to Pipedream’s support team to inquire about raising this limit. If the limit is on Fibery’s end, contact Fibery’s support to discuss your options.

  4. Optimize Your Workflow: Review your workflow to ensure it’s optimized for

I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double-check my answers and code! Learn how to build your own.