[SOLVED] Non JSON content-type for /{contract}/function if chain=eth

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

We will check, thanks for reporting

This still happens now?

Hi, now it looks fine for chain=eth, but same issue now with chain=goerli

1 Like

It should be fixed on goerli today or tomorrow too

okay thanks
Important for now was prod anyhow, that seems to work again. cheers

1 Like

It stopped working again today, its back to text/html for both now, staging=goerli and prod=eth

now it should work on eth again

Due to this more than half of our app functionality is broken. Please fix ASAP for BSC Mainnet !!!

1 Like

@jacob it should be fixed now on goerli too

it ls also fixed on BSC

:white_check_mark: looking good, thanks

1 Like