Back

[SOLVED] realtime updates

  • 0
  • Realtime
Camo
8 Mar, 2023, 23:07

I've uploaded a video to demonstrate the problem - https://failiem.lv/f/8euhqaxnx

TL;DR
User experienced issues with realtime updates in their application. They found a solution by changing the subscription to onmount. However, there is still an issue of some executions returning a status code but displaying as pending. User suspects the issue is on the Svelte side and suggests setting `_APP_OPTIONS_ABUSE` to `disabled`. There are no errors in the function logs and the app crashes when making enough calls. They provided a video demonstration of the problem. Solution: Further investigate the issue and monitor the network tab for any issues.
Drake
8 Mar, 2023, 23:11

and you're saying hte problem is the app begins to become unresponsive?

Camo
8 Mar, 2023, 23:11

if you do enough calls, yes, my chrome browser crashed

Drake
8 Mar, 2023, 23:13

im not sure what's going on....did you look at the netwrok tab to see what was going on?

Camo
8 Mar, 2023, 23:13

yeah its open in the video

Drake
8 Mar, 2023, 23:14

i saw the realtime, not the api call for the function execution.

Camo
8 Mar, 2023, 23:16

Give me a moment i will record again with all resources enabled

Drake
8 Mar, 2023, 23:20

i would also look at the Execution Logs in the Appwrite Console to see how those are doing

Camo
8 Mar, 2023, 23:21
Camo
8 Mar, 2023, 23:23

you mean the function logs? all of them seems to be executed with no problems

Camo
8 Mar, 2023, 23:25

this is in container -

Drake
8 Mar, 2023, 23:25

no your Function Execution Logs in the Appwrite Console

Camo
8 Mar, 2023, 23:27

no errors there, everything good

Drake
8 Mar, 2023, 23:35

maybe try to set the _APP_OPTIONS_ABUSE to disabled?

Camo
8 Mar, 2023, 23:35

i think i found the problem, it was on svelte side, for some reason the owner of the repo did a realtime multiple subscription

Camo
8 Mar, 2023, 23:36

i changed the subscription to onmount, and it seems its better, i just reached rate limit, will check tomorrow if it fixed the problem

Drake
8 Mar, 2023, 23:36

one thing that's odd from this is some executions return the status code but then it still says pending for time. I don't know what would be causing that pending.

Camo
8 Mar, 2023, 23:36

i will report back, good night

Camo
8 Mar, 2023, 23:42

yep, that fixed the problem, works smooth now!

Drake
8 Mar, 2023, 23:45

I'm sure @Meldiron would appreciate a PR to fix this 😉

Camo
8 Mar, 2023, 23:49

Yeah i will do that during weekend, i will write what wasn't understandable for me in the beginning as well, so other people can run the repo faster

Camo
8 Mar, 2023, 23:49

maybe make some images

Camo
9 Mar, 2023, 09:09

@Steven can we mark this as solved please? No idea if I can do that on my own. Does Close post mark this as solved? Or i guess its just renaming the post?

Camo
9 Mar, 2023, 09:10

[SOLVED ] realtime updates

Camo
9 Mar, 2023, 09:11

[SOLVED] realtime updates

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