https://supabase.com/ logo
#help
Title
# help
m

Martin INDIE MAKERS

04/01/2022, 4:49 PM
hey guys i'm trying out functions, to solve a current problem i have in my netlify function. i try to send a file to the function to save in storage from it. i cannot do it from the source. when i do the upload it fail without any message
n

Needle

04/01/2022, 4:49 PM
Hello @Martin INDIE MAKERS! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
m

Martin INDIE MAKERS

04/01/2022, 4:49 PM
it fail on supabase function but work in netlify
the issue in netlify is timeout when the file is too large
ok found the issue it's
Buffer
is not compatible the one expected by supabase and deno
Copy code
TS2345 [ERROR]: Argument of type 'Buffer' is not assignable to parameter of type 'string | ArrayBuffer | ArrayBufferView | URLSearchParams | ReadableStream<...> | Blob | FormData | Buffer | File | NodeJS.ReadableStream'.
  Type 'Buffer' is missing the following properties from type 'Buffer': toJSON, equals, compare, copy, and 79 more.
      .upload(fileName, buff, {
ok i stoped use buffer and just send binary string it fixed all
n

Needle

04/04/2022, 8:41 PM
Thread was archived by @Martin INDIE MAKERS. Anyone can send a message to unarchive it.
Martin INDIE MAKERS (2022-04-01)