Extract CockroachDB IDs as strings before JSON.parse loses precision

Fixkamo-meet
Shipped
30 Machi 2026, 04:18 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

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei