You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded to the latest version and I started seeing this:
2022-04-10 15:04:41.691 | WARN | ResponseParser | Failed to parse JSON from upstream: Unrecognized token 'Request': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (byte[])"Request Blocked. Contact Flux Team."; line: 1, column: 9]
2022-04-10 15:04:41.702 | WARN | ResponseParser | Failed to parse JSON from upstream: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (byte[])"<html>
<head><title>405 Not Allowed</title></head>
<body>
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.21.6</center>
</body>
</html>
"; line: 1, column: 2]
Obviously the error is coming from one of the configured upstreams but I don't know which one just by looking at the logs.
I can figure it out with some testing but it would be nice if the ResponseParser could tell us which one is throwing the error. Based on the output of the "State of ETH" messages I think it's reporting the upstream at 0 in this case.
The text was updated successfully, but these errors were encountered:
Previous it wasn't logged at all, so with the new version I've improved the handling and logging of upstream errors so now you can see them like this. And you're right, it definitely needs to specify the upstream id
Feature Request
I upgraded to the latest version and I started seeing this:
Obviously the error is coming from one of the configured upstreams but I don't know which one just by looking at the logs.
I can figure it out with some testing but it would be nice if the ResponseParser could tell us which one is throwing the error. Based on the output of the "State of ETH" messages I think it's reporting the upstream at
0
in this case.The text was updated successfully, but these errors were encountered: