Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: unable to complete etl run jobs #16

Open
ccerv1 opened this issue Aug 31, 2023 · 1 comment
Open

bug: unable to complete etl run jobs #16

ccerv1 opened this issue Aug 31, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ccerv1
Copy link
Contributor

ccerv1 commented Aug 31, 2023

I'm trying to index GR18 data and encountering an error when I run. It is expecting chainId to come as an int not a string.

yarn run etl --chain [chainId]

I also tried running the jobs directly by modifying index.ts (eg, const chainId = argv.chainId ?? 10) and running yarn run etl and this generated an error:

Invalid value for argument `applicationsEndTime`: number too large to fit in target type. Expected big integer String.

If I switched to chainIds 1 or 424, then I got a fetch error, eg:

details: 'fetch is not defined',
  docsPath: undefined,
  metaMessages: [
    'URL: https://rpc.publicgoods.network',
    'Request body: {"method":"eth_getLogs","params":[{"address":"0x222EA76664ED77D18d4416d2B2E77937b76f0a35","topics":["0xca792622046325e9cd4e24b490cb000ef72acea3a15284efc14ee709307a5e00","0x3532b7116e113d629a3d0a0364840f52c9d93f6b81b2ecc61b2cb228c39ee9fb"],"fromBlock":"0xf9700","toBlock":"0xf9701"}]}'
  ],
  shortMessage: 'HTTP request failed.',
  version: 'viem@1.4.2',
  body: { method: 'eth_getLogs', params: [ [Object] ] },
  headers: undefined,
  status: undefined,
  url: 'https://rpc.publicgoods.network'
}
@ghostffcode ghostffcode self-assigned this Sep 16, 2023
@ghostffcode
Copy link
Collaborator

There's a possibility it's a schema vs database issue. Try running npx prisma migrate dev first while all docker containers are up and healthy before starting the etl run jobs

@ghostffcode ghostffcode added the bug Something isn't working label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants