OpenCerts/opencerts-website

Unable to issue OpenCerts (Ledger - Production)

Opened this issue · 8 comments

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

Thanks, will investigate this

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

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

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

Are we the only ones encountering this issue?

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?

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