Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Trezor error : TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined #2104

Closed
ghost opened this issue Oct 17, 2018 · 27 comments

Comments

@ghost
Copy link

ghost commented Oct 17, 2018

cc @gamalielhere @kvhnuke @SteveMieskoski

default

Can't unlock trezor due to the bug

@ghost ghost mentioned this issue Oct 17, 2018
@prusnak
Copy link
Contributor

prusnak commented Oct 17, 2018

This is caused by deploying CSP Content Security Policy to MEW website without noticing this will block inclusion of third-party scripts such as connect. You need to add connect.trezor.io to CSP trusted domains.

@gamalielhere
Copy link
Collaborator

@eosclassicteam @prusnak thanks for submitting. We're currently working on a fix.

@gamalielhere
Copy link
Collaborator

Should be fixed now. Please hard refresh your browsers if it still isn't fixed. Don't hesitate to reopen issue if it persists after a hard refresh.

@JoeMcCreary
Copy link

still having issue....

@gamalielhere
Copy link
Collaborator

@JoeMcCreary Have you tried hard refreshing your browser?

@JoeMcCreary
Copy link

yeah several times

@gamalielhere
Copy link
Collaborator

@JoeMcCreary What browser are you using?

@JoeMcCreary
Copy link

Chrome: And by Hard Refresh do you mean clearing cache and completely closing out then reopening?

@JoeMcCreary
Copy link

inpage.js:1 ATTENTION: In an effort to improve user privacy, MetaMask will stop exposing user accounts to dapps by default beginning November 2nd, 2018. Dapps should call provider.enable() in order to view and use accounts. Please see https://bit.ly/2QQHXvF for complete information and up-to-date example code.
(anonymous) @ inpage.js:1
etherwallet-master.js:5235 SCANTR m/44'/60'/0'/0 Object
$scope.scanTrezor @ etherwallet-master.js:5235
etherwallet-master.js:144475 Refused to frame 'https://connect.trezor.io/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.

etherwallet-master.js:144454 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://connect.trezor.io') does not match the recipient window's origin ('null').
onLoad @ etherwallet-master.js:144454
etherwallet-master.js:80621 TypeError: Cannot set property 'type' of undefined
at ChildScope.$scope.setHDWallet (etherwallet-master.js:5117)
at fn (eval at compile (etherwallet-master.js:81446), :4:153)
at callback (etherwallet-master.js:93709)
at ChildScope.$eval (etherwallet-master.js:84372)
at ChildScope.$apply (etherwallet-master.js:84471)
at HTMLButtonElement. (etherwallet-master.js:93713)
at defaultHandlerWrapper (etherwallet-master.js:69176)
at HTMLButtonElement.eventHandler (etherwallet-master.js:69164)
(anonymous) @ etherwallet-master.js:80621
(anonymous) @ etherwallet-master.js:76977
$apply @ etherwallet-master.js:84476
(anonymous) @ etherwallet-master.js:93713
defaultHandlerWrapper @ etherwallet-master.js:69176
eventHandler @ etherwallet-master.js:69164

@gamalielhere
Copy link
Collaborator

gamalielhere commented Oct 17, 2018

@JoeMcCreary Depends on your OS:
Mac - Command + Shift + R
Ubuntu & Windows - Control + F5

@JoeMcCreary
Copy link

I'm using windows 7 on this laptop. I've cleared Chrome cache and closed it out, Several times.

@lisyk
Copy link

lisyk commented Oct 17, 2018

it still doesn't work even after hard refresh. I am on Mac

@gamalielhere gamalielhere reopened this Oct 17, 2018
@JoeMcCreary
Copy link

Anyway... good luck! I've got to head out. Thanks for responding... I'm sure you'll get it figured out. I'll try again later. Thanks

@sraufcvinga
Copy link

Hello, the same here for me. I tryed everything you suggest but still doesnt work. I think I should wait for a final fix from you guys. But its a very bad moment just right now for me. Hope you'll fix it soon.

@gamalielhere
Copy link
Collaborator

@sraufcvinga @lisyk @JoeMcCreary It should be fixed now once you do a hard refresh. Closing this issue once again.

@lisyk
Copy link

lisyk commented Oct 17, 2018

it works now on Firefox but still having the same issue on Chrome

@gamalielhere
Copy link
Collaborator

@lisyk can you refresh normally?

@JoeMcCreary
Copy link

Refreshed Chrome cache and even rebooted my laptop just grins.... Still getting the same two errors as earlier posted.
-- Refused to frame 'https://connect.trezor.io/' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
-- etherwallet-master.js:144454 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://connect.trezor.io') does not match the recipient window's origin ('null').

@lisyk
Copy link

lisyk commented Oct 17, 2018

@lisyk can you refresh normally?

nope still doesn't work

@lisyk
Copy link

lisyk commented Oct 17, 2018

@JoeMcCreary did you try Firefox? it works now for me

@gamalielhere
Copy link
Collaborator

nope still doesn't work

I can't seem to replicate it anymore on chrome. I'll keep looking into it

@gamalielhere gamalielhere reopened this Oct 17, 2018
@gamalielhere
Copy link
Collaborator

@lisyk @JoeMcCreary if you guys can, try hard refreshing and then normal refresh.

@JoeMcCreary
Copy link

@gamalielhere Okay I opened the Developer Tools then right clicked on the Refresh button (up top of Chrome by URL box) and chose "Empty Cache and Hard Reload". Then closed the browser. Still didn't work. Then just decided to do that same thing several times in a row and if finally fixed the problem... man! it was really hanging on to that old data! lol So it's working now in Chrome. Thanks!

@gamalielhere
Copy link
Collaborator

Weird. But thanks for letting me know. I'll go ahead and close this again.

@lisyk
Copy link

lisyk commented Oct 17, 2018

@JoeMcCreary @gamalielhere that's weird but it helped me too. also only after about 10 hard reloads in a row it works now

@JoeMcCreary
Copy link

@lisyk Yeah, great! Interesting how it takes so many tries to stick.

@gamalielhere
Copy link
Collaborator

I wonder how that is since we did purge our cache. Anyways, thanks again for helping debug @JoeMcCreary @lisyk

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

No branches or pull requests

5 participants