Skip to content
Back

⨯ TypeError: source.on is not a function at Array.handler

  • 0
  • Databases
  • Web
  • Storage
  • Cloud
L0GIC
26 Mar, 2025, 00:30

I don't even know how to type this cause I'm more than frustrated at this point.

It should be a straightforward implementation but Appwrite, or more accurately its node-SDK just had to cause vague and untraceable error that theoretically should be an easy fix

I thought I had it working but it's just a stupid edge case. The behavior of **storage.createFile **is very inconsistent! It works one minute and breaks the next, literally! Please fix this. Please

The fact that I was able to save the file recivied via formdata as a local file says the parsing is fine. The uploading is broken

TL;DR
Title: Error with source.on not being a function in Appwrite node-SDK Developers are frustrated with a vague error while trying to implement storage.createFile in Appwrite. The behavior of the function is inconsistent, leading to errors despite successful parsing. Solution: The issue could be related to incorrect usage of the source.on function. Double-check the implementation and ensure that the source object is correctly defined before using it in the createFile function.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more