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
- type generation on same columns in table
is there way to prevent this ? or only need to update column name like table prefix?
- Custom Topic sent from Function (with sc...
Can I send a message on a custom topic? So clients can subscribe to them?
- WEBP preview not working after upgrading...
Only with preview, I'm getting this error: {"message":"no decode delegate for this image format `WEBP' @ error\/blob.c\/BlobToImage\/481","code":400,"type":"sto...