Our production fails to process a function all the sudden. The /{contract}/function endpoint seems to return a content-type text/html . When I try to reproduce the issue on staging I realized all is working fine.
I was able to reproduce the issue using postman and looks like different chains behave differently.
It looks like its working fine for chain=goerli, but not for chain=eth. Not entirely sure when this issue start occurring, but first issue reports came in today.
Good Response
Date: Tue, 20 Dec 2022 10:45:05 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 24
Connection: keep-alive
X-Powered-By: Express
Access-Control-Allow-Origin: *
x-request-weight: 2
ETag: W/"18-IddIP9cpzkuBBQjPIrD2W9oJxkg"
Vary: Accept-Encoding
CF-Cache-Status: DYNAMIC
Server: cloudflare
CF-RAY: 77c7c95528b38fc5-FRA
Response Body
"1000000000000000000000"
Bad Response
Date: Tue, 20 Dec 2022 10:42:57 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: Express
Access-Control-Allow-Origin: *
Vary: Accept-Encoding
CF-Cache-Status: DYNAMIC
Server: cloudflare
CF-RAY: 77c7c6354dc98fc5-FRA
Content-Encoding: gzip
Response Body
498000000000000000000