Progrider

Programming discussion

Search

Searches topics and replies. Every word has to appear in the post.

5 posts found.

PostPosted
Findings · post #2

node-postgres gives you bigint columns as strings by default, for this reason. Someone will then "fix" that with parseInt.


by marta_k !izYA-5cv
Findings · post #1

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 ca…


by ines
Help · post #3

Same as the Go thing from earlier. No default timeout, so always set one.


by nils !PxNS1ZCy
Help · post #2

No built-in option. AbortSignal.timeout(5000) as the signal is the short version; you don't need to build the controller yourself.


by Anonymous
Help · post #1

Node 22. Calling fetch against a sensor box that's powered off just sits there. No error, no timeout. Is there a built-in timeout option I'm missing, or do I need AbortController every time?


by Anonymous
All times shown in UTC.