mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
debugging
This commit is contained in:
@@ -118,6 +118,8 @@ function getAxiosOptions () {
|
||||
// If there is a failure, obj.msg is false.
|
||||
function decodeError (err) {
|
||||
try {
|
||||
console.log(`JSON of error: ${JSON.stringify(err, null, 2)}`)
|
||||
|
||||
// Attempt to extract the full node error message.
|
||||
if (
|
||||
err.response &&
|
||||
@@ -175,8 +177,6 @@ function decodeError (err) {
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`JSON of error: ${JSON.stringify(err, null, 2)}`)
|
||||
|
||||
// Handle 429 errors thrown by nginx
|
||||
if (err.error) {
|
||||
console.log('decodeError: err: ', err)
|
||||
|
||||
Reference in New Issue
Block a user