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

TypeError: Cannot read property 'error' of undefined #495

Open
dkent600 opened this issue Jun 16, 2020 · 1 comment
Open

TypeError: Cannot read property 'error' of undefined #495

dkent600 opened this issue Jun 16, 2020 · 1 comment

Comments

@dkent600
Copy link
Contributor

dkent600 commented Jun 16, 2020

re:

(accInfo.observer as Observer<BN>).error(err)

I am seeing this error when there is thrown an error "Connection not open" and
accInfo.observer is undefined.

addr is set to a DAO.

This is on rinkeby.

STEPS to force this error to happen:

  1. clear any existing INFURA_ID environment variable in your shell
  2. in the shell, run npm run start-staging
  3. I'm really not sure: You may need to have an account already cached (so the "Connect" button will be showing)
  4. using a fresh instance of your browser
  5. run that build of Alchemy in your browser
  6. navigate to Genesis Alpha (or probably any DAO)

RESULT:
You will see that the DAO token and ETH amounts say "N/A" and the quoted error message on the console.

@dkent600
Copy link
Contributor Author

Whether you can reproduce or not, I imagine this code can easily be made not to crash in this instance. Extra credit to clearly understand why accInfo.observer is undefined and whether there are any other ramifications in this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant