svix / svix-webhooks

The enterprise-ready webhooks service 🦀
https://www.svix.com
MIT License
2.32k stars 159 forks source link

Unable to get messages older than 12 hours #1455

Open n3xt-samuel opened 6 hours ago

n3xt-samuel commented 6 hours ago

Bug Report

Version

svix npm package v1.26.0

Platform

N/A

Description

I am using the svix package to get messages and noticed that I am unable to fetch messages older than 12 hours old (may be shorter).

I am able to query new messages.

Org name: n3xt App Id: app_2mZbzzog8mEKxDMN3851uyMlym0

Screenshot 2024-09-28 at 2 26 46 PM

For example I am able to query for fb3aa742-da1d-4749-8fd7-54256fc64ccc but when I query for 5b99d7b3-5342-4da8-95c5-41a3b4d1514f, I get this in the response

Message: {"code":"not_found","detail":"message not found"}

Snippet

await svix.message.get("app_2mZbzzog8mEKxDMN3851uyMlym0", "fb3aa742-da1d-4749-8fd7-54256fc64ccc")); // Good
await svix.message.get("app_2mZbzzog8mEKxDMN3851uyMlym0", "5b99d7b3-5342-4da8-95c5-41a3b4d1514f"); // Not Found

What I expect

I should be able to query older messages.

What is happening

I am unable to query messages older than 12 hours.

tasn commented 6 hours ago

Thanks for reporting, we'll take a look!