You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting error while trying to upload heavy File using Edge Functions. It works fine with files <=5 MB and it fails with files of around 9/10+ MBs.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a function that expects a Files
run it and pass in a File (you can use Postman)
See error
Expected behavior
File is received
Current behavior: crash
[Info] PARSING FILE...
CPU time limit reached. isolate: 3328699061268672774
event loop error: Uncaught Error: execution terminated
Error in worker connection: error writing a body to connection: Broken pipe (os error 32)
failed to send request to user worker: connection error: Connection reset by peer (os error 104)
InvalidWorkerResponse: user worker failed to respond
at async UserWorker.fetch (ext:sb_user_workers/user_workers.js:52:15)
at async Server.<anonymous> (file:///home/deno/main/index.ts:123:12)
at async Server.#respond (https://deno.land/[email protected]/http/server.ts:220:18) {
name: "InvalidWorkerResponse"
}
event loop error: TypeError: request body receiver not connected (request closed)
at async Object.write (ext:deno_web/06_streams.js:954:9)
Error in worker connection: error writing a body to connection: Broken pipe (os error 32)
request failed (uri: "/create_chat" reason: hyper::Error(Io, Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }))
System information
OS: [macOS]
Version of supabase-js: [2.4.0]
Piece of code to extract file from formData:
console.log('PARSING FILE...')constbody=ctx.request.body({type: "form-data"});constmaxFileSizeForFreeVersion=15;constformData=awaitbody.value.read({// Need to set the maxSize so files will be stored in memory.// This is necessary as Edge Functions don't have disk write access.// We are setting the max size as 10MB (an Edge Function has a max memory limit of 150MB)// For more config options, check: https://deno.land/x/[email protected]/mod.ts?s=FormDataReadOptionsmaxSize: maxFileSizeForFreeVersion*MB,maxFileSize: maxFileSizeForFreeVersion*MB,bufferSize: maxFileSizeForFreeVersion*MB});console.log('PARSING FILE - ERROR')
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Getting error while trying to upload heavy File using Edge Functions. It works fine with files <=5 MB and it fails with files of around 9/10+ MBs.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
File is received
Current behavior: crash
System information
Piece of code to extract file from formData:
The text was updated successfully, but these errors were encountered: