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 'getHostNode' of null during email verification #746

Closed
tzarebczan opened this Issue Nov 14, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@tzarebczan
Member

tzarebczan commented Nov 14, 2017

The Issue

Users are seeing TypeError: Cannot read property 'getHostNode' of null when trying to verify their email

Clearing the LBRY auth token and trying again seems to fix the issue. Not sure if its API side or app side. I was able to get an email verified earlier, so not sure exactly what scenario it happens in or how to reproduce (will try tomorrow on a clean install)

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

@tzarebczan

This comment has been minimized.

Show comment
Hide comment
@tzarebczan

tzarebczan Nov 15, 2017

Member

The workaround may just require a complete restart of LBRY, no auth token clearing required - that seems to work for some users.

Member

tzarebczan commented Nov 15, 2017

The workaround may just require a complete restart of LBRY, no auth token clearing required - that seems to work for some users.

@tzarebczan

This comment has been minimized.

Show comment
Hide comment
@tzarebczan

tzarebczan Nov 15, 2017

Member

@kauffj see below for line/trace

First error in console (first line):

      currentBalance <= 0 ? _react2.default.createElement(
        "div",
        null,
        _react2.default.createElement(
          "p",
          null,
          "You currently have ",
          _react2.default.createElement(_common.CreditAmount, { amount: currentBalance }),
          ", so the actions you can take are limited."
        ),

bundle.js:123487 Uncaught ReferenceError: currentBalance is not defined
    at ModalCreditIntro (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:123487:7)
    at file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42909:16
    at measureLifeCyclePerf (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42679:12)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42908:14)
    at ReactCompositeComponentWrapper._constructComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42883:21)
    at ReactCompositeComponentWrapper.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42791:21)
    at Object.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7801:35)
    at ReactCompositeComponentWrapper.performInitialMount (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42974:34)
    at ReactCompositeComponentWrapper.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42861:21)
    at Object.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7801:35)
ModalCreditIntro @ bundle.js:123487
(anonymous) @ bundle.js:42909
measureLifeCyclePerf @ bundle.js:42679
_constructComponentWithoutOwner @ bundle.js:42908
_constructComponent @ bundle.js:42883
mountComponent @ bundle.js:42791
mountComponent @ bundle.js:7801
performInitialMount @ bundle.js:42974
mountComponent @ bundle.js:42861
mountComponent @ bundle.js:7801
_updateRenderedComponent @ bundle.js:43368
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
receiveComponent @ bundle.js:43150
receiveComponent @ bundle.js:7880
_updateRenderedComponent @ bundle.js:43357
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
performUpdateIfNecessary @ bundle.js:43164
performUpdateIfNecessary @ bundle.js:7912
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
close @ bundle.js:4582
closeAll @ bundle.js:11464
perform @ bundle.js:11411
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
batchedUpdates @ bundle.js:4632
dispatchEvent @ bundle.js:44473
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 31, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
notify @ bundle.js:47186
notifyNestedSubs @ bundle.js:47222
onStateChange @ bundle.js:23017
notify @ bundle.js:47186
notifyNestedSubs @ bundle.js:47222
onStateChange @ bundle.js:23017
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:8001
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 32, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:8001
bundle.js:7818 Uncaught TypeError: Cannot read property 'getHostNode' of null
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:28)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactDOMComponent._updateChildren (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42339:42)
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
_updateChildren @ bundle.js:42339
updateChildren @ bundle.js:42292
_updateDOMChildren @ bundle.js:40632
updateComponent @ bundle.js:40450
receiveComponent @ bundle.js:40412
receiveComponent @ bundle.js:7880
_updateRenderedComponent @ bundle.js:43357
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
receiveComponent @ bundle.js:43150
receiveComponent @ bundle.js:7880
_updateRenderedComponent @ bundle.js:43357
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
performUpdateIfNecessary @ bundle.js:43164
performUpdateIfNecessary @ bundle.js:7912
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
batchedUpdates @ bundle.js:4632
dispatchEvent @ bundle.js:44473
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 36, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:7975
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 37, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:7975
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 38, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:7975
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 39, pending 30)
Member

tzarebczan commented Nov 15, 2017

@kauffj see below for line/trace

First error in console (first line):

      currentBalance <= 0 ? _react2.default.createElement(
        "div",
        null,
        _react2.default.createElement(
          "p",
          null,
          "You currently have ",
          _react2.default.createElement(_common.CreditAmount, { amount: currentBalance }),
          ", so the actions you can take are limited."
        ),

bundle.js:123487 Uncaught ReferenceError: currentBalance is not defined
    at ModalCreditIntro (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:123487:7)
    at file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42909:16
    at measureLifeCyclePerf (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42679:12)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42908:14)
    at ReactCompositeComponentWrapper._constructComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42883:21)
    at ReactCompositeComponentWrapper.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42791:21)
    at Object.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7801:35)
    at ReactCompositeComponentWrapper.performInitialMount (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42974:34)
    at ReactCompositeComponentWrapper.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42861:21)
    at Object.mountComponent (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7801:35)
ModalCreditIntro @ bundle.js:123487
(anonymous) @ bundle.js:42909
measureLifeCyclePerf @ bundle.js:42679
_constructComponentWithoutOwner @ bundle.js:42908
_constructComponent @ bundle.js:42883
mountComponent @ bundle.js:42791
mountComponent @ bundle.js:7801
performInitialMount @ bundle.js:42974
mountComponent @ bundle.js:42861
mountComponent @ bundle.js:7801
_updateRenderedComponent @ bundle.js:43368
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
receiveComponent @ bundle.js:43150
receiveComponent @ bundle.js:7880
_updateRenderedComponent @ bundle.js:43357
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
performUpdateIfNecessary @ bundle.js:43164
performUpdateIfNecessary @ bundle.js:7912
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
close @ bundle.js:4582
closeAll @ bundle.js:11464
perform @ bundle.js:11411
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
batchedUpdates @ bundle.js:4632
dispatchEvent @ bundle.js:44473
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 31, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
notify @ bundle.js:47186
notifyNestedSubs @ bundle.js:47222
onStateChange @ bundle.js:23017
notify @ bundle.js:47186
notifyNestedSubs @ bundle.js:47222
onStateChange @ bundle.js:23017
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:8001
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 32, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:8001
bundle.js:7818 Uncaught TypeError: Cannot read property 'getHostNode' of null
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:28)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactCompositeComponentWrapper.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42987:28)
    at Object.getHostNode (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:7818:29)
    at ReactDOMComponent._updateChildren (file:///C:/Program%20Files%20(x86)/LBRY/resources/app/dist/js/bundle.js:42339:42)
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
getHostNode @ bundle.js:42987
getHostNode @ bundle.js:7818
_updateChildren @ bundle.js:42339
updateChildren @ bundle.js:42292
_updateDOMChildren @ bundle.js:40632
updateComponent @ bundle.js:40450
receiveComponent @ bundle.js:40412
receiveComponent @ bundle.js:7880
_updateRenderedComponent @ bundle.js:43357
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
receiveComponent @ bundle.js:43150
receiveComponent @ bundle.js:7880
_updateRenderedComponent @ bundle.js:43357
_performComponentUpdate @ bundle.js:43327
updateComponent @ bundle.js:43248
performUpdateIfNecessary @ bundle.js:43164
performUpdateIfNecessary @ bundle.js:7912
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
batchedUpdates @ bundle.js:4632
dispatchEvent @ bundle.js:44473
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 36, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:7975
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 37, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:7975
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 38, pending 30)
printWarning @ bundle.js:279
warning @ bundle.js:303
performUpdateIfNecessary @ bundle.js:7904
runBatchedUpdates @ bundle.js:4685
perform @ bundle.js:11398
perform @ bundle.js:11398
perform @ bundle.js:4624
flushBatchedUpdates @ bundle.js:4707
closeAll @ bundle.js:11464
perform @ bundle.js:11411
batchedUpdates @ bundle.js:21820
enqueueUpdate @ bundle.js:4735
enqueueUpdate @ bundle.js:14962
enqueueSetState @ bundle.js:15156
ReactComponent.setState @ bundle.js:18057
onStateChange @ bundle.js:23020
dispatch @ bundle.js:23307
(anonymous) @ bundle.js:29798
(anonymous) @ bundle.js:115490
dispatch @ bundle.js:47968
(anonymous) @ bundle.js:7975
bundle.js:279 Warning: performUpdateIfNecessary: Unexpected batch number (current 39, pending 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment