-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing a dictionary to the replay param? #16
Comments
I was experiencing the same issue, I know this is a year old but still! I got it working doing this, unsure if it's the intended way:
I'm storing the replay_id and checking it on client creation. |
@charlie-peak-ai I am using my own ReplayMarkerStorage and having issues with retrieving events by passing a replay id stored in pgsql. I believe, I have followed all required steps yet if pull the last stored replay id and pass it, it is throwing an exception. I have created a new issue here, please let me know if you see any thing unusual in my code. |
Thank you @charlie-peak-ai! I just had to revisit this now almost two years later from my original question and I was able to get it to work using the code you provided. |
The docs say you can use a dictionary to pass the
replay
param of the client.I'm not exactly clear on what this dictionary needs to contain though. I see it needs a string and a
ReplayMarker
so I tried thisreplay={"replay": ReplayMarker("2021-01-27T18:33:19.087Z", 272625)}
But I don't seem to pull in any previous events. These are hardcoded for now for testing purposes, I'll dynamically retrieve them from the last successful event once I get this working.
The text was updated successfully, but these errors were encountered: