Hello everyone, i updated my appwrite backend from the version 1.3.8 to the version 1.4.14. Its works good except the json i return from my functions. After the updated the functions returning a whole new json data. Her is an example:
Here is the Json from the 1.4.14: {"payload":"{weeks:[{year:2024,kw:16}]}","data":{"0":{"year":2024,"kw"......
Here is the Json from the 1.3.8: {"payload":"{weeks:[{year:2024,kw:16}]}","data":[{"year":2024,"kw".....
You can see after "data" there is no "[" and a "0"?????
i have no idee why this is different because i didn't changed something.
I also updated every function with this document: https://appwrite.io/docs/products/functions/develop
For my frontend app this makes it unusable.
Thanks for all replies ๐
Hi there. When developing feature for Appwrite 1.5, I saw similar weird behaviour. It comes from the way how deletion occurs in array_diff function of Appwrite APIs programming language.
This could be bug on API side. Can you please explain how this response is generated? It is probably forwarding data of some appwrite SDK response.
Hi there, thank you for your replie. Sorry that I answer so late :/. There is really a response. I create a document an send it to the database. I do this in a for loop to do this with multiple data
i hope this will help you ๐
calenderWeeks is delcared like this. maybe here i will get an error because of the declaration:
List<CalendarWeek> calendarWeeks = (listOfWeeks as Iterable) .map((e) => CalendarWeek(e['year'] ?? 0, e['kw'] ?? 0)) .toList();
can you share more of the payload?
this isn't coming out of realtime, is it?
oh wait...this is your function code? why are you calling a function from in a function? ๐ง
no this is coming out of a buffer ๐ฅฒ
this is the code above:
Recommended threads
- Hi, I'm getting this error while deployi...
โ Error โข search (6937cb70002c2e9c1a97) โข Fai โ Error: Deployment of search has failed. Check at https://cloud.appwrite.io/console/project-693...
- Timed out waiting for runtime. Error Cod...
After setting up my ML project that uses deepface and tensorflow in appwrite functions I get the `Timed out waiting for runtime. Error Code: 400. ` error. I am...
- script "build" was terminated by signal ...
Heyo, For some reason, my Next.js 16.0.10 version does not build properly. Here is the last logs: ``` 1063 packages installed [22.54s] $ next build โ No build...