klaytn / rosetta-sdk-go-klaytn

Apache License 2.0
1 stars 3 forks source link

EncodeJSONResponse - http: superfluous response.WriteHeader call #13

Open aeharvlee opened 2 years ago

aeharvlee commented 2 years ago

Describe the bug When request to rosetta-etheruem using roestta-cli check:data, it often returns

2022/05/22 06:02:13 http: superfluous response.WriteHeader call from github.com/klaytn/rosetta-sdk-go-klaytn/server.EncodeJSONResponse (routers.go:86)

Related source code: https://github.com/klaytn/rosetta-sdk-go-klaytn/blob/34a3f989ee5f152135e9ab2f64134502ce2e3474/server/routers.go#L79-L88

I found Go Forum posting which deals with this problem and now I'm trying to solve this problem.

aeharvlee commented 2 years ago

I also created https://github.com/coinbase/rosetta-sdk-go/issues/407 to share this problem with Coinbase