ethereum / sourcify

Decentralized Solidity contract source code verification service
https://sourcify.dev
MIT License
775 stars 384 forks source link

Replace fetch with axios in monitor #1510

Closed marcocastignoli closed 1 month ago

marcocastignoli commented 1 month ago

The error detail inside "Error sending contract" errors in monitor is just

{
message: "fetch failed"
name: "TypeError"
stack: "TypeError: fetch failed
    at node:internal/deps/undici/undici:13178:13
    at async PendingContract.sendToSourcifyServer (/home/app/services/monitor/dist/PendingContract.js:99:30)
    at async /home/app/services/monitor/dist/ChainMonitor.js:178:25"
}

with no additional details. Reading online I found out that is probably a problem with the standard fetch API.

kuzdogan commented 1 month ago

Approved but I doubt it will help. let's see