[Need Investigation] Intermittent Request Failures on Previewnet with Unknown Server Error Code 567 #3711
Labels
bug
Something isn't working
Team Promoted
Issues to be triaged and discussed by committers, maintainers, to be worked on the following sprint
Description
Intermittent request failures have been observed on the Previewnet environment (6%-9% of the requests). These requests fail with a status code of 567 (the fallback code for unknown server errors in MirrorNodeClient), indicating the error likely originates in the Relay service rather than the Mirror Node remote server.
Error Symptoms
The error logs show vague and inconsistent messages:
Error invoking RPC: Unexpected 'S'
Error invoking RPC: Unexpected '<'
These errors:
Root Cause
The error is caused by HTML content being returned instead of expected JSON responses. At the time of the issue, MN was returning 502 Server Error with the below content:
The error messages
Unexpected 'S'
andUnexpected '<'
occur when the MirrorNodeClient attempts to parse HTML withJSONBigInt.parse()
in the Axios response interceptor:This is a classic case of receiving HTML error pages (starting with
<!DOCTYPE html>
or<html>
) when JSON is expected. In the Previewnet environment, one of the following is occurring:Suggested Fix
The text was updated successfully, but these errors were encountered: