question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loadApp fails on MacOS with: Invalid status 6700 (Unknown reason)

See original GitHub issue

OS: MacOS Sierra 10.12.6 device: Ledger Nano S firmware: 1.4.1 Script(s): loadApp Python: 3.6.4 (virtualenv) command (from blue-app-btc root): python -m ledgerblue.loadApp --appFlags 0x50 --curve secp256k1 --targetId 0x31100003 --fileName bin/app.hex --appName "Bitcoin" --path "" Version: 0.1.17 (commit ab589175f3551133fd6e6645a9cb5d845cb9892f - ie. non pip version) trace:

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/tadhgriordan/.virtualenvs/ledger/lib/python3.6/site-packages/ledgerblue-0.1.17-py3.6.egg/ledgerblue/loadApp.py", line 248, in <module>
    loader.createAppNoInstallParams(args.appFlags, appLength, args.appName, args.icon, path, None, None, args.appVersion)
  File "/Users/tadhgriordan/.virtualenvs/ledger/lib/python3.6/site-packages/ledgerblue-0.1.17-py3.6.egg/ledgerblue/hexLoader.py", line 344, in createAppNoInstallParams
    self.exchange(self.cla, 0x00, 0x00, 0x00, data)
  File "/Users/tadhgriordan/.virtualenvs/ledger/lib/python3.6/site-packages/ledgerblue-0.1.17-py3.6.egg/ledgerblue/hexLoader.py", line 194, in exchange
    return self.scpUnwrap(bytes(self.card.exchange(apdu)))
  File "/Users/tadhgriordan/.virtualenvs/ledger/lib/python3.6/site-packages/ledgerblue-0.1.17-py3.6.egg/ledgerblue/comm.py", line 129, in exchange
    raise CommException("Invalid status %04x (%s)" % (sw, possibleCause), sw, response)
ledgerblue.commException.CommException: Exception : Invalid status 6700 (Unknown reason)

status 6700 is incorrect length.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Penplecommented, Apr 27, 2018

I ended up having to load using the --tlv flag, didn’t catch it in the docs. Working fine though now, thanks!

0reactions
btchipcommented, Apr 28, 2018

ok, closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open a Mac app from an unidentified developer - Apple Support
If you try to open an app by an unidentified developer and you see a warning dialog, ... This doesn't necessarily mean that...
Read more >
VPP Installation issue with Monterey - Jamf Nation Community
I am seeing this behavior on macOS Monterey v12.1 with the learning Ally App. Invalid Status Code is the error message the pops...
Read more >
Solved: SSL VPN: Windows Works, MacOS does not!
The correct user/pass generates no messages. It connects but then for reasons unknown gets disconnected. Fortigate Logs: [263:root:42]got SNI server name: vpn.
Read more >
How do I fix the invalid certificate error on Mac? - MacPaw
Some certificates use custom settings. If these custom settings are set incorrectly, it can cause macOS to display an invalid certificate error.
Read more >
The blue-loader-python from LedgerHQ - Coder Social Home
When running loadApp, it fails on installing to Ledger Nano S running firmware 1.55. ... loadApp fails on MacOS with: Invalid status 6700...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found