IDs got rounded on their way through JSON
Order numbers from a new system are 17 digits. They came out of JSON.parse in the browser off by a few, so the "order not found" pages were getting ...993 turned into ...992. Number.MAX_SAFE_INTEGER is 9007199254740991, past that doubles can't represent every integer.
Send IDs as strings. "Identifiers aren't numbers" as somebody said here.
Your discussion
This browser holds the management token for this post.
Save management token
Keep this private. Anyone with the token can resolve or delete this discussion.
1 reply
node-postgres gives you bigint columns as strings by default, for this reason. Someone will then "fix" that with parseInt.