otikOriginal post
Rank 2: Process
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
Summary
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