Debug Internal Node Errors
I tried to setup Assembly AI with their SDK, but I got this error.
Running this code from a conex action causes this error, I do not know how to debug this or what the actual error message might be. I have 'use node' directive at the top of the action file
Are there plans to make debugging internal node errors like this easieer? Can I get help with what went wrong


6 Replies
@Mordsith is your api key correct? The error looks like it couldn’t fetch anything from AssemblyAI
Despite appearances (and reasonable assumptions) this isn't an internal node error. _deps/node/RHDIFHS.js and friends are your code, bundled with eslint. We should make the error backtraces more readable.
My best guess would also be that your api key is incorrect.
Thank you @Lee x @Hmza
It was not an api key error but the error came from Assembly. It's related to my account plan.
The issue has been resolved.
I agree that the backtraces should be more readable. Thank you
Hi @PaschalDev , I just ran into this issue too. What was the change on your account plan that fixed it?
Hi @warmbowski
I don’t really remember but I think I was on a free plan and that didn’t work until I upgraded
I finally settled on the opinion that AssemblyAI SDK is poorly built and throws these "processTicksAndRejections" exceptions instead of having good error handling. It basically does this if you mess up ANY configuration. In my case, I forgot to set the API_KEY env var in the Convex runtime (i.e. npx convex env set API_KEY aaaaaaa...), but I also got the error when I passed and incorrectly spelled option.
Bottom line, use the AssemblyAI api directly and get rid of the SDK. As a bonus, if you ditch the SDK for the API, you don't need the "use node" directive.