stacks-blockchain-api icon indicating copy to clipboard operation
stacks-blockchain-api copied to clipboard

Fix RPC proxy middleware errors showing up in logs

Open zone117x opened this issue 3 years ago • 1 comments

Expected-looking http errors occurring inside the RPC proxy are showing up as level: error logs.

Example: Response 400 during POST /v2/transaction to extra endpoint http://stacks-node-follower-events-blue-0.stacks-node-follower-events-blue.prod-stacks.svc.cluster.local:20443/v2/transactions

zone117x avatar Feb 15 '22 16:02 zone117x

@zone117x what is the required behavior for this issue? With the current approach, the specified error is logged here. Are we supposed to ignore the http error even if the p.value.ok is not true? Or should such errors be shown as level: warning logs?

MHassanTariq avatar May 17 '22 10:05 MHassanTariq

These should probably be warning level logs.

zone117x avatar Apr 06 '23 16:04 zone117x