Skip to content

ethernal listen causes TypeError: Cannot read property 'get' of undefined #19

@aspiers

Description

@aspiers

Excited to try out Ethernal for the first time! I created an account and workspace, however ethernal listen crashes:

$ ethernal listen

Start listening for transactions

Options:
      --help       Show help                                           [boolean]
      --version    Show version number                                 [boolean]
  -w, --workspace  Workspace to connect to.                             [string]
  -d, --dir        Project directory to watch                            [array]
  -s, --server     Do not watch for artifacts change - only listen for
                   transactions
  -l, --local      Do not listen for transactions - only watch contracts

TypeError: Cannot read property 'get' of undefined
    at getDefaultWorkspace (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:389:69)
    at async setWorkspace (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:405:28)
    at async setupWorkspace (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:418:5)
    at async Object.listen [as handler] (/home/adam/.nvm/versions/node/v14.17.0/lib/node_modules/ethernal/bin/index.js:422:5)

I added some debug and saw that currentUser.data() returns:

currentUser.data() is {
  plan: 'free',
  apiKey: '<censored>',
  stripeCustomerId: 'cus_<censored>'
}

but the code implies it should be returning an object which has a currentWorkspace property. Seems that probably comes from the firebase db, so I guess it's a server-side issue?

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