AbortSignal is not defined
I'm getting a 500 error when I try to run any prompt. The console error log shows that AbortSignal is not defined:
error - (api)\pages\api\server.js (11:12) @ handler
error - ReferenceError: AbortSignal is not defined
at handler (webpack-internal:///(api)/./pages/api/server.js:14:17)
at Object.apiResolver (C:\Users\andrea\Desktop\Riffusion\web-app\node_modules\next\dist\server\api-utils\node.js:367:15)
at runMicrotasks (
11 | signal: AbortSignal.timeout(15000), | ^ 12 | }); 13 | 14 | const data = await response.json();
We may need to change the routes to use AbortController to handle the timeout if AbortSignal is not supported on your browser? Or add the polyfill in this post: https://stackoverflow.com/a/50101022/901553
Can you try it?
Haven't had a chance to try the polyfill yet, but I get the same error in the most recent versions of both Chrome and Firefox.
Upgrading Node seems to have fixed the error. It would be good to include the minimum required version of Node in the dependencies and/or installation instructions.
Done in #23, duplicate with #8