openethereum / fether

Decentralized and light Ethereum Wallet
BSD 3-Clause "New" or "Revised" License
122 stars 32 forks source link

Cannot read property 'uMethod' of undefined #566

Closed amaury1093 closed 4 years ago

amaury1093 commented 4 years ago

(initially found in https://github.com/paritytech/fether/issues/560#issuecomment-545858683, but creating a separate issue for this)

Repro:

Unhandled Rejection (TypeError): Cannot read property 'uMethod' of undefined
(anonymous function)
src/utils/PostMessageProvider.js:125
  122 | return new Promise((resolve, reject) => {
  123 |   this._send(
  124 |     {
> 125 |       method: this._messages[subId].uMethod,
      | ^  126 |       params: [subId]
  127 |     },
  128 |     {
View compiled
PostMessageProvider.unsubscribe
src/utils/PostMessageProvider.js:122
  119 | }
  120 | 
  121 | unsubscribe (subId) {
> 122 |   return new Promise((resolve, reject) => {
      | ^  123 |     this._send(
  124 |       {
  125 |         method: this._messages[subId].uMethod,
View compiled
▶ 3 stack frames were collapsed.

(not a high-priority issue, since in the bundled app it's not noticeable)