Uncaught (in promise) {code: 141, error: '[object Object]'} for getTokenPrice or getDateToBlock

suddenly gets this error and suddenly it works fine
moralis.js:29030 POST https://hshpln19g7gb.usemoralis.com:2053/server/functions/getTokenPrice 400
Uncaught (in promise) {code: 141, error: ‘[object Object]’}

suddenly i get this error in getDateToBlock api and suddenly it work and similar for getTokenPrice
and suddenly it works fine for both the api without error

but when i ran the same thing directly on console in the browser it works fine everytime without issue just 1 or time it was failed

please help me on this really got stucked on this