makerdao / multicall.js

Multicall.js: A JavaScript blockchain state management library for dapps
MIT License
421 stars 97 forks source link

Multicall received an empty response even we have correct configuration #24

Open chiro-hiro opened 3 years ago

chiro-hiro commented 3 years ago

There are thousands of them in our log, try to restart service everything went back to normal.

 ERROR: Multicall error: Error: Multicall received an empty response. Check your call configuration for errors.
    at ethCall (/node_modules/@makerdao/multicall/dist/multicall.cjs.js:99:13)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Look like, cross-fetch didn't working well in Node.js:

https://github.com/makerdao/multicall.js/blob/master/src/helpers.js#L122-L127

Could you guys update cross-fetch to 3.0.6.

chiro-hiro commented 3 years ago

Our service reach this state because of the call's payload is too big.