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

Unable to issue OpenCerts (Ledger - Production) #588

Open
yvonneyong opened this issue Jan 8, 2021 · 8 comments
Open

Unable to issue OpenCerts (Ledger - Production) #588

yvonneyong opened this issue Jan 8, 2021 · 8 comments

Comments

@yvonneyong
Copy link

We were unable to issue OpenCerts on the Ledger site yesterday, after several attempts throughout the day.
Attached the screenshot, and errors.

inpage.js:1 MetaMask: We will stop injecting web3 in Q4 2020.
Please see this article for more information: https://medium.com/metamask/no-longer-injecting-web3-js-4a899ad6e59e
get @ inpage.js:1
inpage.js:1 MetaMask: MetaMask will soon stop reloading pages on network change.
For more information, see: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-autorefreshonnetworkchange
Set 'ethereum.autoRefreshOnNetworkChange' to 'false' to silence this warning.
(anonymous) @ inpage.js:1
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
popover-index.html:27 Blocked autofocusing on a

element in a cross-origin subframe.
DevTools failed to load SourceMap: Could not load content for chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/disable-console.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/contentscript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/inpage.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Error

@rjchow
Copy link
Contributor

rjchow commented Jan 8, 2021

Thanks, will investigate this

@yvonneyong
Copy link
Author

Hi, can we check if there is any update? Can our user proceed to issue the OpenCerts?

@rjchow
Copy link
Contributor

rjchow commented Jan 11, 2021

Hi yvonneyong,

I investigated and it looks like Ledger Nano support is a bit patchy with our site, and also if your wallet firmware is outdated it might cause issues as well.

Fortunately there is an alternative Metamask workflow now that was not originally supported back when we developed admin-website. Metamask can also act as a proxy to interact with the Ledger Nano, simply use "Add Hardware Wallet" inside Metamask to add your Ledger Nano.

You may follow the instructions here or here to connect your Ledger Nano to Metamask.

After adding the Ledger Nano to Metamask, you can follow the below to issue a certificate:

  1. make sure your ledger nano is completely up to date
  2. before opening admin site, connect ledger nano to computer and unlock it, then open the ethereum app
  3. ensure that "contract data" is set to yes in ethereum app
  4. before opening admin site, add ledger nano to metamask wallet and ensure that it shows up as connected
  5. open admin site, select metamask
  6. do transaction stuffs on website, wait for metamask to prompt for tx confirmation after hitting issue or deploy
  7. you /may/ see a windows security dialog after initiating a transaction, if you do - look at your ledger nano to see if there is a confirmation dialog "Review Transaction". if you don't, try pressing any button on the ledger nano once and wait
  8. review transaction on ledger nano
  9. approve transaction on ledger nano
  10. wait for transaction to complete

@yvonneyong
Copy link
Author

The user initially had difficulties but managed to connect after a few tries, but encountered further errors.
error
errordetails
inpage.js:1 MetaMask: We will stop injecting web3 in Q4 2020.
Please see this article for more information: https://medium.com/metamask/no-longer-injecting-web3-js-4a899ad6e59e
get @ inpage.js:1
inpage.js:1 MetaMask: MetaMask will soon stop reloading pages on network change.
For more information, see: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-autorefreshonnetworkchange
Set 'ethereum.autoRefreshOnNetworkChange' to 'false' to silence this warning.
(anonymous) @ inpage.js:1
inpage.js:1 MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1102
enable @ inpage.js:1
inpage.js:1 MetaMask: The event 'data' is deprecated and may be removed in the future.
_warnOfDeprecation @ inpage.js:1
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
inpage.js:1 MetaMask - RPC Error: Error: TransportStatusError: Ledger device: Invalid data received (0x6a80) Object
(anonymous) @ inpage.js:1
DevTools failed to load SourceMap: Could not load content for chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/disable-console.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/contentscript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/sourcemaps/inpage.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

@yvonneyong
Copy link
Author

Are we the only ones encountering this issue?

@rjchow
Copy link
Contributor

rjchow commented Jan 14, 2021

we haven't received any other reports, just to check - do you have contract data set to "YES" in the Ethereum app settings on the ledger nano itself?

@rjchow
Copy link
Contributor

rjchow commented Jan 14, 2021

@yvonneyong
Copy link
Author

After setting contract data was set to Yes, the OpenCerts issuing worked.

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

2 participants