Prisma Pulse not working after a while
i'm using Prisma Postgres and Prisma Pulse in my API. after a few hours, pulse stops functioning, while the normal database connection continues to work without issues. to resolve this, i have to manually visit the Prisma dashboard to disable and re-enable pulse, after which it starts working again.
when pulse stops working, i encounter
P6101
error codes in the console:

16 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!Hey @1875 π
Thank you for raising this issue here. I would like to take a look at the logs for your project to debug this issue.
Can you let me know your email id or the GitHub handle with which you signed up?
(Also, thanks for filling out the feedback form, our team has received the feedback π )
hey Nurul!
it should be under "[email protected]"
i'm very happy with Pulse so far, was able to implement real-time with ease in our dashboard and landing. would love to figure out what's going wrong here so we can move closer to using this in prod π
appreciate the quick response, and sorry for double posting. wasn't sure where would be appropriate to reach out π
Thank you for sharing the email π
And no worries about double posting. We really appreciate you that you gave us feedback.
This issue happens on Development environment of project named "Flawless", right?
yeah, thatβs correct
Thanks for confirming. I do see intermittent disconnections.
I have raised this with our PPg team. Please allow me to get back to you with an update as soon as possible
take your time, and let me know if you need anything from my end. iβm happy to help and definitely understand. iβve always been a Prisma user, been waiting for Pulse since it was announced. i donβt mind the extra wait if it means Prisma improves π
Thank you so much for your kind words and being a valued Prisma user. I will get back to you as soon as I have an update π
@1875 The issue should be fixed now. Can you test? We rolled out a fix yesterday
i will do some testing and report back
Great! Thank you for your assistance π
tested alongside other providers, and it seems fine. there are some minor throttles happening at times, is this expected on the free tier?
yeah, it just started throttling pretty bad. this is what used to happen before it would reject the pulse streams.
as you can see, it never streamed any events for connecting
it should log like this ^
yeah, it just started throttling pretty bad.If I understand correctly, you are not receiving events instantly, right? The events are throttled, so you are receiving events very delayed?
yeah, at times it takes several minutes to receive events, and by then they are all queued up and send all at once
Checked with pulse team:
given the way pulse is reconnecting now at 90seconds interval, it's an expected behavior. This is going to change once we finalize the ppg extension to push events on demandSo, for now this is expected, though this will change pretty soon and you can expect faster events. You won't notice this behaviour if your db is active and consistently sending events though:
the more the db is active, the less it's supposed to happen, though
i understand, though this was happening when i was doing pretty much constant tests. which is why i noticed it in the first place. it would stop updating the user status and throttle
following up on this. i just tested by sending repeated events, and it stopped streaming them entirely after a little while. i will attach the logs, and the events have not yet fired as of typing this