mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Backing down on some of the debugger statements
This commit is contained in:
@@ -2055,23 +2055,19 @@ class Slp {
|
|||||||
res.status(200)
|
res.status(200)
|
||||||
return res.json({ slpUtxos: utxos })
|
return res.json({ slpUtxos: utxos })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('ping01')
|
|
||||||
wlogger.error('Error in slp.js/hydrateUtxos().', err)
|
wlogger.error('Error in slp.js/hydrateUtxos().', err)
|
||||||
console.error('Error in slp.js/hydrateUtxos().', err)
|
// console.error('Error in slp.js/hydrateUtxos().', err)
|
||||||
|
|
||||||
console.log('ping02')
|
|
||||||
|
|
||||||
// Decode the error message.
|
// Decode the error message.
|
||||||
const { msg, status } = routeUtils.decodeError(err)
|
const { msg, status } = routeUtils.decodeError(err)
|
||||||
console.log('msg: ', msg)
|
// console.log('msg: ', msg)
|
||||||
console.log('status: ', status)
|
// console.log('status: ', status)
|
||||||
|
|
||||||
if (msg) {
|
if (msg) {
|
||||||
res.status(status)
|
res.status(status)
|
||||||
return res.json({ error: msg, message: msg, success: false })
|
return res.json({ error: msg, message: msg, success: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('ping03')
|
|
||||||
|
|
||||||
res.status(500)
|
res.status(500)
|
||||||
return res.json({
|
return res.json({
|
||||||
error: 'Undetermined error in hydrateUtxos()',
|
error: 'Undetermined error in hydrateUtxos()',
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ class RouteUtils {
|
|||||||
|
|
||||||
// Handle 429 errors thrown by nginx
|
// Handle 429 errors thrown by nginx
|
||||||
if (err.error) {
|
if (err.error) {
|
||||||
console.log('decodeError: err: ', err)
|
// console.log('decodeError: err: ', err)
|
||||||
|
|
||||||
if (err.error.includes('429 Too Many Requests')) {
|
if (err.error.includes('429 Too Many Requests')) {
|
||||||
const internalMsg =
|
const internalMsg =
|
||||||
|
|||||||
Reference in New Issue
Block a user