Extract CockroachDB IDs as strings before JSON.parse loses precision

Fixkamo-meet
Shipped
March 30, 2026 at 4:18 AM UTC
Author
Kamo
Commit
f4532bd

CockroachDB unique_rowid() IDs (e.g. 1161936315562426374) exceed JavaScript's Number.MAX_SAFE_INTEGER (9007199254740991). JSON.parse silently corrupts them — 1161936315562426374 becomes 1161936315562426400. The sidecar was calling **************** with the WRONG member ID, causing 404/empty response, so avatar was always empty. Fix: regex-extract memberID, userID, orgID as strings from the raw Redis JSON BEFORE JSON.parse runs. Use these string IDs for all API calls and response values.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing