Back

Cant create file

  • 1
  • Self Hosted
  • Web
  • Storage
  • Cloud
otik
15 Sep, 2023, 20:01

Hi, could you please help me? I create a file on server-side but using client sdk (appwrite for client). But always when i create a file an error appeares. Error: source.on is not a function Do you think that it is because of using client sdk on server-side? I use client sdk on server-side because of ssr. For this case i could use node-appwrite, though. But it would be better if it worked with client appwrite sdk. Do you have any idea why does this error appear?

i am using appwrite-cloud, appwrite client sdk version 13.0.0

TL;DR
User is having trouble creating a file using the client SDK on the server-side. They are receiving an error saying "source.on is not a function." They are using the Appwrite client SDK version 13.0.0. They want to know if this error is because they are using the client SDK on the server-side. They prefer to use the client SDK but could switch to the node-appwrite SDK if necessary. Any ideas on why this error is appearing? Solution: It is recommended to use the node-appwrite SDK for server-side operations instead of the client SDK. Switching to the node-appwrite SDK should resolve this error
Drake
15 Sep, 2023, 20:14

you may need to use the node sdk for the create file

otik
15 Sep, 2023, 20:24

Ok, thank you very much

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