I am trying to run my autotask script locally and I can't seem to get it to run. I've added the necessary code to the bottom of my autotask to run locally, and I can confirm my API keys work (I can programmatically upload autotask files).
My code export.handler function just stops when it has to run:
const provider = new DefenderRelayProvider(credentials)
const signer = new DefenderRelaySigner(credentials, provider, { speed: 'fast' })
I'm thinking the issue comes with the package dependencies. I use npm. I grabbed the yarn.lock file and then ran:
yarn install
A laundry list of warning's popped up (see below). I am not sure which ones are of concern and which ones are not. My directory has a package-lock file (as seen in the first warning). I am not sure if this is block anything or not. I also noticed at the end there were unmet peer dependencies for defender-relay-client which seems like an issue.
Any suggestions on how to fix this issue?
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍 Resolving packages...
warning aws-sdk > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning aws-sdk > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning ethereum-waffle > @ethereum-waffle/compiler > @resolver-engine/imports > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-common@1.5.0: New package name format for new versions: @ethereumjs/common. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-account@3.0.0: Please use Util.Account class found on package ethereumjs-util@^7.0.6 https://github.com/ethereumjs/ethereumjs-util/releases/tag/v7.0.6
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-tx@2.1.2: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm@4.2.0: New package name format for new versions: @ethereumjs/vm. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm > ethereumjs-account@3.0.0: Please use Util.Account class found on package ethereumjs-util@^7.0.6 https://github.com/ethereumjs/ethereumjs-util/releases/tag/v7.0.6
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm > ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm > ethereumjs-tx@2.1.2: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > ethereumjs-block@1.7.1: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > ethereumjs-vm@2.6.0: New package name format for new versions: @ethereumjs/vm. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > ethereumjs-block > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > ethereumjs-vm > ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > ethereumjs-vm > ethereumjs-common@1.5.2: New package name format for new versions: @ethereumjs/common. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > @ethereum-waffle/ens > @ensdomains/ens@0.4.5: Please use @ensdomains/ens-contracts
warning ethereum-waffle > @ethereum-waffle/compiler > @resolver-engine/imports > @resolver-engine/core > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm > ethereumjs-blockchain@4.0.4: New package name format for new versions: @ethereumjs/blockchain. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm > ethereumjs-blockchain > ethereumjs-block@2.2.2: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-block-tracker > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > @ethereum-waffle/ens > @ensdomains/resolver@0.2.4: Please use @ensdomains/ens-contracts
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > ethereumjs-vm > ethereumjs-blockchain > ethashjs@0.0.8: New package name format for new versions: @ethereumjs/ethash. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > @ethereum-waffle/ens > @ensdomains/ens > testrpc@0.0.1: testrpc has been renamed to ganache-cli, please use this package from now on.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-json-rpc-infura > eth-json-rpc-middleware > ethereumjs-block@1.7.1: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-json-rpc-infura > eth-json-rpc-middleware > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-json-rpc-infura > eth-json-rpc-middleware > ethereumjs-vm@2.6.0: New package name format for new versions: @ethereumjs/vm. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-block-tracker > json-rpc-engine > safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-json-rpc-infura > eth-json-rpc-middleware > eth-tx-summary > ethereumjs-block@1.7.1: New package name format for new versions: @ethereumjs/block. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-json-rpc-infura > eth-json-rpc-middleware > eth-tx-summary > ethereumjs-tx@1.3.7: New package name format for new versions: @ethereumjs/tx. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-json-rpc-infura > eth-json-rpc-middleware > eth-tx-summary > ethereumjs-vm@2.6.0: New package name format for new versions: @ethereumjs/vm. Please update.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > patch-package > find-yarn-workspace-root > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > patch-package > find-yarn-workspace-root > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-block-tracker > json-rpc-engine > babelify > babel-core > babel-register > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning ethereum-waffle > @ethereum-waffle/provider > ganache-core > web3-provider-engine > eth-block-tracker > json-rpc-engine > babelify > babel-core > babel-runtime > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning hardhat > mocha > debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning hardhat > mocha > chokidar > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > defender-relay-client@1.10.0" has unmet peer dependency "@ethersproject/abstract-provider@^5.0.2".
warning " > defender-relay-client@1.10.0" has unmet peer dependency "@ethersproject/abstract-signer@^5.0.2".
warning " > defender-relay-client@1.10.0" has unmet peer dependency "@ethersproject/providers@^5.0.5".
warning " > defender-relay-client@1.10.0" has unmet peer dependency "web3-core@^1.3.4".
warning " > defender-relay-client@1.10.0" has unmet peer dependency "web3-core-helpers@^1.3.4".
warning "ethereum-waffle > @ethereum-waffle/compiler > typechain > ts-essentials@6.0.7" has unmet peer dependency "typescript@>=3.7.0".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.