TomFrankly / pipedream-notion-voice-notes

Take notes with your voice and send them to Notion
94 stars 49 forks source link

Variety of error codes #71

Open mjrose514 opened 4 months ago

mjrose514 commented 4 months ago

Describe the bug I can't get past the last test phase. I tried last night and tonight and between the two I've gotten 3 different error messages. I can't remember the first two, but the current one is saying corrupted or not there... but it's there and fine. I did notice it's an m4a file. Not sure if that's causing a problem, but that's what is coming directly from my voice memos and I wouldn't know how to change it.

"An error occurred while processing the audio file: Failed to read audio file metadata. The file format might be unsupported or corrupted, or the file might no longer exist at the specified file path (which is in temp storage). If you are using the Google Drive or OneDrive versions of this workflow and are currently setting it up, please try testing your 'download' step again in order to re-download the file into temp storage. Then test this step again. Learn more here: https://thomasjfrank.com/how-to-transcribe-audio-to-text-with-chatgpt-and-notion/#error-failed-to-read-audio-file-metadata

DETAILS at Object.getDuration (file:///tmp/pdg/dist/code/1f555395881e5b79fbe9431588e45c7f9763b0394fdc7e0eaabc4ff53300ac5d/code/Notion-Voice-Notes.mjs:358:11) at Object.run (file:///tmp/pdg/dist/code/1f555395881e5b79fbe9431588e45c7f9763b0394fdc7e0eaabc4ff53300ac5d/code/Notion-Voice-Notes.mjs:1984:23) at null.executeComponent (/var/task/launch_worker.js:294:22) at MessagePort.messageHandler (/var/task/launch_worker.js:791:28)"

Which cloud storage app are you using? (Google Drive, Dropbox, or OneDrive) Google drive

Have you tried updating your workflow? I have completely deleted and restarted. I've tried a new api key. I've updated my billing. I've redownloaded each and every try. I've tried changing the notion database. I've tried adding a different file and using that... Not sure what else I could change.

Does the issue only happen while testing the workflow, or does it happen during normal, automated runs? Only at the setting up and testing stage

Please paste the contents of your Logs tab from the notion_voice_notes action step. 2/19/2024, 11:13:06 PM Checking that file is under 300mb...

2/19/2024, 11:13:06 PM File size is approximately 0.6mb.

2/19/2024, 11:13:06 PM File is under the size limit. Continuing...

2/19/2024, 11:13:06 PM Checking if the user set languages...

2/19/2024, 11:13:06 PM No language set. Whisper will attempt to detect the language.

2/19/2024, 11:13:06 PM File path of Google Drive file: /tmp/Clerbrook Golf RV Resort 2.m4a

2/19/2024, 11:13:06 PM at Object.getDuration (file:///tmp/pdg/dist/code/1f555395881e5b79fbe9431588e45c7f9763b0394fdc7e0eaabc4ff53300ac5d/code/Notion-Voice-Notes.mjs:340:12) at Object.run (file:///tmp/pdg/dist/code/1f555395881e5b79fbe9431588e45c7f9763b0394fdc7e0eaabc4ff53300ac5d/code/Notion-Voice-Notes.mjs:1984:23) at null.executeComponent (/var/task/launch_worker.js:294:22) at MessagePort.messageHandler (/var/task/launch_worker.js:791:28)

2/19/2024, 11:13:06 PM Attempting to clean up the /tmp/ directory...

2/19/2024, 11:13:06 PM File /tmp/Clerbrook Golf RV Resort 2.m4a does not exist.

2/19/2024, 11:13:06 PM Directory does not exist.

mjrose514 commented 4 months ago

anyone?

TomFrankly commented 4 months ago

@mjrose514 could you try testing with this file? https://www.dropbox.com/scl/fi/htbnh86xvqevzznhzgej6/testaudio.m4a?rlkey=l4w8mhlqgds2khwjrllvekqbp&dl=0

You can see me successfully set up and test a new copy of the workflow from scratch using this file here: https://www.loom.com/share/c6db525dcb114145a1674d4c05855a75?sid=ea5dd995-4931-43a3-b79d-9d6b2ed6dcdb

Additionally, can you refresh the workflow builder page and make sure the final step is updated, as shown at 00:47 in the video?

neusql commented 4 months ago

m4a works! I was experiencing the same issue as mjrose514. it was a file format issue in the end. Incredible you can create something like this just after 1 year of programming Tom -a real inspiration. I've been learning on and off through CS50 and ChatGPT for 2 years and haven't gotten where you are.

mjrose514 commented 4 months ago

I'm working with Google Drive. I have updated, started anew, uploaded your file to google drive, and tried again and still getting errors.

On Sat, Feb 24, 2024 at 8:05 PM Thomas Frank @.***> wrote:

@mjrose514 https://github.com/mjrose514 could you try testing with this file? https://www.dropbox.com/scl/fi/htbnh86xvqevzznhzgej6/testaudio.m4a?rlkey=l4w8mhlqgds2khwjrllvekqbp&dl=0

You can see me successfully set up and test a new copy of the workflow from scratch using this file here: https://www.loom.com/share/c6db525dcb114145a1674d4c05855a75?sid=ea5dd995-4931-43a3-b79d-9d6b2ed6dcdb

Additionally, can you refresh the workflow builder page and make sure the final step is updated, as shown at 00:47 in the video?

— Reply to this email directly, view it on GitHub https://github.com/TomFrankly/pipedream-notion-voice-notes/issues/71#issuecomment-1962775539, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGJAXHL4PYW57HV4NCLUYDTYVKE7NAVCNFSM6AAAAABDQOHRKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSG43TKNJTHE . You are receiving this because you were mentioned.Message ID: @.***>

mjrose514 commented 4 months ago

How did you get yours to work? I've tried both formats and neither worked.

On Tue, Feb 27, 2024 at 8:42 PM CASINO89 @.***> wrote:

m4a works! I was experiencing the same issue as mjrose514. it was a file format issue in the end. Incredible you can create something like this just after 1 year of programming Tom -a real inspiration. I've been learning on and off through CS50 and ChatGPT for 2 years and haven't gotten where you are.

— Reply to this email directly, view it on GitHub https://github.com/TomFrankly/pipedream-notion-voice-notes/issues/71#issuecomment-1968033543, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGJAXHONJGG6VPAJ34TZD3LYV2DQ3AVCNFSM6AAAAABDQOHRKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRYGAZTGNJUGM . You are receiving this because you were mentioned.Message ID: @.***>

TomFrankly commented 4 months ago

@mjrose514 can you confirm that you've connected a credit card to your OpenAI account, added credits, generated a new API key after doing that, and are using that new API key in Pipedream?

If you're using my file and are following the video I posted above, this is the only other variation I can think of that would cause a failure. It has to be something happening on OpenAI's side.

mjrose514 commented 4 months ago

I’ll check on the credits and such. But the video you sent was for Dropbox not google drive so some of the things are different…

On Sat, Mar 2, 2024 at 12:05 PM Thomas Frank @.***> wrote:

@mjrose514 https://github.com/mjrose514 can you confirm that you've connected a credit card to your OpenAI account, added credits, generated a new API key after doing that, and are using that new API key in Pipedream?

If you're using my file and are following the video I posted above, this is the only other variation I can think of that would cause a failure. It has to be something happening on OpenAI's side.

— Reply to this email directly, view it on GitHub https://github.com/TomFrankly/pipedream-notion-voice-notes/issues/71#issuecomment-1974852960, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGJAXHIOPGPPBRZF4W5INOTYWIBFRAVCNFSM6AAAAABDQOHRKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUHA2TEOJWGA . You are receiving this because you were mentioned.Message ID: @.***>

TomFrankly commented 4 months ago

@mjrose514 the only difference is that with Google Drive, you'll want to make sure you test the google_drive step again before re-testing the notion_voice_notes step.

This because the latter step clears temp storage on each run, so you need to download the file back into temp storage on subsequent tests.