Skip to content

codegen: Error retrieving binary #422

@zramsay

Description

@zramsay

To reproduce:

cd packages/codegen
git clone https://github.com/collectif-dao/liquid-staking.git

using this example.config.yaml:

contracts:
    # Contract name:
  - name: RewardCollector
    # Contract file path or an url:
    path: ./liquid-staking/contracts/RewardCollector.sol
    # Contract kind (should match name of dataSource in {subgraphPath}/subgraph.yaml if subgraphPath provided)
    #kind: Example1

# Output folder path (logs output using `stdout` if not provided).
outputFolder: ../coll/reward-collector

# Code generation mode [eth_call | storage | all | none] (default: none).
mode: none

# Kind of watcher [lazy | active] (default: active).
kind: lazy

# Watcher server port (default: 3008).
port: 3008

# Solc version to use (optional)
# If not defined, uses solc version listed in dependencies
solc: v0.8.21+commit.d9974be

# Flatten the input contract file(s) [true | false] (default: true).
flatten: true

# Path to the subgraph build (optional).
# Can set empty contracts array when using subgraphPath.
# subgraphPath: ../graph-node/test/subgraph/example1/build

# NOTE: When passed an *URL* as contract path, it is assumed that it points to an already flattened contract file.

The error:

# yarn codegen -c example.config.yaml 
yarn run v1.22.19
$ ts-node src/generate-code.ts -c example.config.yaml
Error: Error retrieving binary: Not Found
    at RedirectableRequest.<anonymous> (/root/watcher-ts/node_modules/solc/wrapper.js:337:24)
    at RedirectableRequest.emit (node:events:514:28)
    at RedirectableRequest.emit (node:domain:489:12)
    at RedirectableRequest._processResponse (/root/watcher-ts/node_modules/follow-redirects/index.js:356:10)
    at ClientRequest.RedirectableRequest._onNativeResponse (/root/watcher-ts/node_modules/follow-redirects/index.js:62:10)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:514:28)
    at ClientRequest.emit (node:domain:489:12)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
Done in 628.25s.

same error for any contract

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions