TomFrankly / pipedream-notion-voice-notes

Take notes with your voice and send them to Notion
108 stars 57 forks source link

Voice Notes not working #74

Closed berchman closed 8 months ago

berchman commented 8 months ago

Error An error occured while attempting to split the file into chunks, or while sending the chunks to OpenAI. If the full error below says "Unidentified connection error", please double-check that you have entered valid billing info in your OpenAI account. Afterward, generate a new API key and enter it in the OpenAI app here in Pipedream. Then, try running the workflow again. If that does not work, please open an issue at this workflow's Github repo: https://github.com/TomFrankly/pipedream-notion-voice-notes/issues Full error from OpenAI: Connection error.

DETAILS

Explain at Object.chunkFileAndTranscribe (file:///tmp/pdg/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:391:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.run (file:///tmp/pdg/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:1901:22) at null.executeComponent (/var/task/launch_worker.js:286:22) at MessagePort.messageHandler (/var/task/launch_worker.js:785:28)

alexkeeley commented 8 months ago

I'm also having the same issue with a nearly identical error code occuring in the Notion_voice_notes section of the pipedream workflow:

Error An error occured while attempting to split the file into chunks, or while sending the chunks to OpenAI. If the full error below says "Unidentified connection error", please double-check that you have entered valid billing info in your OpenAI account. Afterward, generate a new API key and enter it in the OpenAI app here in Pipedream. Then, try running the workflow again. If that does not work, please open an issue at this workflow's Github repo: https://github.com/TomFrankly/pipedream-notion-voice-notes/issues Full error from OpenAI: Connection error.

DETAILS at Object.chunkFileAndTranscribe (file:///pipedream/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:391:11) at Object.run (file:///pipedream/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:1901:22) at null.executeComponent (/var/task/launch_worker.js:267:22) at MessagePort.messageHandler (/var/task/launch_worker.js:764:28)

I have valid biling details with my OpenAI account. I have generated a new API key and added to the workflow and retested.

at Object.chunkFileAndTranscribe (file:///tmp/pdg/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:391:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.run (file:///tmp/pdg/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:1901:22) at null.executeComponent (/var/task/launch_worker.js:286:22) at MessagePort.messageHandler (/var/task/launch_worker.js:785:28)

Now i'm stuck

TomFrankly commented 8 months ago

Can you guys try again today?

Seems like they had a spot of downtime yesterday.

This error usually happens because their systems are overloaded and refuse to accept the connection.

The best thing we could do in that case is wait longer before retrying, but here in Pipedream we're up against that 5-minute timeout on individual workflow runs on the free plan. So we can't wait too long.

berchman commented 8 months ago

Hi Thomas, yes, I'll give it a try again today. For reference I was using the sample file you provided in the tut. So it's not the size of the file. Anyhow, will try it again shortly and report back. THANKS for your reply! Cheers, Bert

alexkeeley commented 8 months ago

I have tried again and the issue is resolved.

And as your help pages suggest: yes it was a billing issue (with the new "purchase credits upfront system" for API). I had not realised this when I generated a new key.

I put some credit on my account, generated a new key and retested and all successful.

Many thanks for your reply.

berchman commented 8 months ago

Likewise @TomFrankly my issue is resolved as well. I actually ran into a permission error where I couldn't create a page in Notion, but I resolved that.

friesenkevin commented 8 months ago

Thank you!!! Worked, it was a funding issue for my API account.