cryptoadvance / cryptoadvance/specter-desktop

Bug: AttributeError: 'NoneType' object has no attribute 'group'

Open
#2,000 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
847
Forks
259
Avg merge
6d 18h
Merged PRs (30d)
2

Description

**Describe the bug**
Clicking on the txid to see the tx details overlay I get an error (The tx details overlay still works though). Only with a certain tx I have this error.

**Trace**
```

[2022-12-05 21:37:29,232] INFO in wallets_api: Looking up a txid that didn't originate from the user's wallet. Can't return any tx data.
[2022-12-05 21:37:29,233] INFO in _internal: 127.0.0.1 - - [05/Dec/2022 21:37:29] "POST /wallets/wallet/2of2/decoderawtx/ HTTP/1.1" 200 -
[2022-12-05 21:37:29,273] INFO in _internal: 127.0.0.1 - - [05/Dec/2022 21:37:29] "POST /wallets/wallet/2of2/decoderawtx/ HTTP/1.1" 200 -
[2022-12-05 21:37:29,312] DEBUG in wallets_api: Derivation path of this descriptor could not be parsed. Sth. wrong with the regex pattern which was (\/[0-9h]+)(\/[0-9h]+)(\/[0-9h]+)(\/[0-9h]+)?(\/[0-9h]+)??
[2022-12-05 21:37:29,312] ERROR in controller: Uncaught exception: 'NoneType' object has no attribute 'group'
[2022-12-05 21:37:29,313] ERROR in controller: Traceback (most recent call last):

File "/home//programs/anaconda3/envs/specter310/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/home//programs/anaconda3/envs/specter310/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home//programs/anaconda3/envs/specter310/lib/python3.10/site-packages/flask_login/utils.py", line 269, in decorated_view
return func(*args, **kwargs)
File "/home//programs/specter-desktop/src/cryptoadvance/specter/server_endpoints/wallets/wallets_api.py", line 546, in addressinfo
handle_exception(e)
File "/home//programs/specter-desktop/src/cryptoadvance/specter/specter_error.py", line 52, in handle_exception
raise exception
File "/home//programs/specter-desktop/src/cryptoadvance/specter/server_endpoints/wallets/wallets_api.py", line 532, in addressinfo
logger.debug(f"This is the derivation path match: {match.group()}")
AttributeError: 'NoneType' object has no attribute 'group'

```

**To Reproduce**

The regtest tx is:
`02000000000102de339fa1dea0e9a69ccbe91ffecc23fbdae763f89a630c7c793d1534f51b96ef0000000000fdffffffd4b2fa51c7ec579b3d43d5b8f0de65142ff48edbcb797d10186a5831d620ed730100000000fdffffff02615cc60000000000160014baeebf8054bfd5fb161d9bd3fa1c4a807a617b8100e1f50500000000220020b68fc32701a5c569cbc79f9224e06844ccae2ed1fb0b8f0e14bc4bf2f1a98ac20247304402205c034381e0d27dafd27bc267ad78cc9e5d15312e09917c2f76516799360a04870220274fa2e0aae90b9a5f8f1dd7362452e8fa2765e893bff3ae352ef0998577e684012102b093760617e4fa6d14ccfb75253017a6e147b746a4b8749d47dc4ebc456752820247304402205e8869e36888922615b94e26e3b7e723f2048197118043197326a695b7af24fd02206c06cc495a57a4d8a2e2806f301f911dd20480a936a428d1e25404708b6512c90121025fae0aebe466049553b82fd4373a0489c9de68922f2aee7952dbe63ef5c414c8fb000000`

The error off addressinfo is in Input 1 (so the second input).

I created this TX by
1. send a tx from 1 wallet in specter to a 2. wallet in specter.
2. go to the 2. wallet and click on the txid in the txlist.

Request content:
```
Content-Disposition: form-data; name="address"

bcrt1qtgvvyt563rmkxyg5srgfuvje9n4328x5zrt7ll
```

**Desktop (please complete the following information):**
- Where is your node running: local(external)]
- Linux, master
- Firefox

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.