Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: TypeError: source.on is not a function at Array.handler #106

Open
2 tasks done
everurstruly opened this issue Mar 26, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@everurstruly
Copy link

👟 Reproduction steps

  1. Set up a Next.js API route (with app router) to handle a POST request.
  2. Ensure the request receives FormData containing an appended image file.
  3. Use the Appwrite Node.js SDK to upload the file.

👍 Expected behavior

Upload the file!

👎 Actual Behavior

When calling storage.createFile in Appwrite Node.js SDK, the upload behaves inconsistently.
Once in a thousand years, the file uploads successfully. Most of the time, it fails with the same error!

The issue occurs without any clear pattern, making debugging frustrating.
Pattern? I've used different file object representations! Blob, Buffer...

🎲 Appwrite version

Version 0.10.x

💻 Operating system

Windows

🧱 Your Environment

Windows Specifications
Edition: Windows 10 Pro
Version: 22H2
System type: 64-bit operating system, x64-based processor

Codebase
Node: v20.13.1
Next.js: v15
Node-Appwrite: v15.0.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@everurstruly everurstruly added the bug Something isn't working label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant