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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...