What Quota Limit Did I Hit on Pipedream and Why Did I Receive an Error While Setting Up My First Workflow?

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

I’m setting up my first workflow and received the error message below. Can you help me understand what quota limit I hit and why? Given I haven’t used anything on Pipedream yet, I’m surprised that I’ve already hit a quota limit.

Error - Request failed with status code 429
{“error”:{“message”:“You exceeded your current quota, please check your plan and billing details.”,“type”:“insufficient_quota”,“param”:null,“code”:null}}
DETAILS

    at null.createError (/tmp/__pdg__/dist/code/0a4c6de49c6d9ddaf9ba5867695a3d951a4614a54f8f2028e98bf6ecb81b2a47/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
    at null.settle (/tmp/__pdg__/dist/code/0a4c6de49c6d9ddaf9ba5867695a3d951a4614a54f8f2028e98bf6ecb81b2a47/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/tmp/__pdg__/dist/code/0a4c6de49c6d9ddaf9ba5867695a3d951a4614a54f8f2028e98bf6ecb81b2a47/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:412:35)
    at null.endReadableNT (internal/streams/readable.js:1333:12)
    at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

steps.create_transcription{1}
debug{5}

I apologize for the confusion. The error message you received indicates that you’ve exceeded a quota limit. However, since you mentioned that you haven’t used Pipedream yet, this might be an issue with the API you’re trying to connect to, rather than Pipedream itself. To better assist you, could you please provide more information about the API or service you’re trying to connect to in your workflow?

I’m trying to connect to OpenAI / ChatGPT

To connect to OpenAI’s ChatGPT in your Pipedream workflow, you can use the Chat action provided by the OpenAI app. Here’s how to set it up: 1. In your workflow, click on the “+” button to add a new step. 2. Search for the OpenAI (ChatGPT) app in the step menu. 3. Select the Chat action. 4. Connect your OpenAI (ChatGPT) account. 5. Select a Model or pass a string from a previous step. 6. Select a User Message or pass a string from a previous step. 7. Configure any optional props as needed. 8. At the bottom of the step, click Test to run the action and test the configuration. For more details, you can refer to the OpenAI (ChatGPT) — Chat documentation.

this was not helpful…

I apologize for my previous response. Let’s try to address the issue again. The error message you received (status code 429) indicates that you’ve exceeded a quota limit. However, this is likely related to the OpenAI API, not Pipedream itself. To help you further, could you please share the code snippet or the steps you’re using to connect to the OpenAI ChatGPT API within your Pipedream workflow? This will allow me to better understand the issue and provide a more accurate solution.

where do I find the code snippet you’re referring to?

I apologize for the confusion. In this case, I don’t need a code snippet from you. Instead, I’ll guide you through the process of connecting to the OpenAI ChatGPT API within your Pipedream workflow. Please follow these steps: 1. Add a new action step in your workflow by clicking the “+” button. 2. Search for “HTTP” in the step menu and select the “Send any HTTP Request” action. 3. Configure the action with the following details: - Method: POST - URL: https://api.openai.com/v1/engines/davinci-codex/completions (Replace davinci-codex with the desired model if needed) - Headers: Add a header with the key Authorization and the value Bearer YOUR_API_KEY (Replace YOUR_API_KEY with your actual OpenAI API key) - Data: Add the required input parameters for the ChatGPT API, such as prompt, max_tokens, etc., in JSON format. After setting up the action, you can test the workflow to see if it connects to the OpenAI ChatGPT API successfully. If you encounter any issues, please let me know, and I’ll be happy to help.

here are the steps I’m taking to try and setup automatic transcription of call recordings:

  1. I configured google drive to watch a folder for new files (this tested successfully)
  2. I then setup a download_file event for Google Drive
  3. now I’m trying to setup a create_transcription event within OpenAI (ChatGPT). I’ve linked my OpenAI account, and selected this file path /tmp/recording.{{steps.trigger.event.fullFileExtension}}
    When I run a test on this event, I receive the error message I mentioned before

I see that you’re trying to set up automatic transcription of call recordings using Google Drive and OpenAI (ChatGPT). Based on the steps you’ve provided, it seems like you’re trying to use the “Create Transcription” action in OpenAI (ChatGPT). However, this action is not available in the OpenAI (ChatGPT) app on Pipedream. Instead, you can use the “Chat” action to send the audio file to OpenAI’s API for transcription. Here’s how to modify your workflow: 1. After the “Download File” action for Google Drive, add a new action step. 2. Search for “HTTP” in the step menu and select the “Send any HTTP Request” action. 3. Configure the action with the following details: - Method: POST - URL: https://api.openai.com/v1/engines/davinci-codex/completions (Replace davinci-codex with the desired model if needed) - Headers: Add a header with the key Authorization and the value Bearer YOUR_API_KEY (Replace YOUR_API_KEY with your actual OpenAI API key) - Data: Add the required input parameters for the ChatGPT API, such as prompt, max_tokens, etc., in JSON format. Make sure to include the audio file path /tmp/recording.{{steps.trigger.event.fullFileExtension}} in the appropriate parameter. After setting up the action, test the workflow to see if it connects to the OpenAI ChatGPT API successfully. If you encounter any issues, please let me know, and I’ll be happy to help.

sorry for the confusion, that quota error appears to be coming from OpenAI, and not Pipedream. You’ve likely exhausted your quota with their API.

what do you mean the create transcription action is not available? I have it selected, so this action is definitely available

thanks Danny

I apologize for the confusion earlier. It seems I misunderstood your situation. Since you have the “Create Transcription” action available in your Pipedream workflow, it should be possible to use it for your purpose. Regarding the error message you received (status code 429), it indicates that you’ve exceeded the quota limit for the OpenAI API. To resolve this issue, you may need to wait until your quota resets or consider upgrading your OpenAI plan to increase your quota limits. If you need further assistance with your workflow or have any other questions, please feel free to ask.

Danny, I think I still have lots of quota left though. For my ‘free trial usage’ I have used $0.01 out of $18

(for my OpenAI account)

That looks like the $18 has expired, based on that screenshot

ah…

got ya