| KeyError |
Python 3.11.2: /usr/bin/python3 Mon Dec 30 20:42:03 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/chn/eid/dfri-eid/nginx-test-issuer/cgi-bin/gencert.py in <module> |
| 93 if 'pubkey' in arguments: |
| 94 base64pubkey = arguments['pubkey'].value |
| => 95 personnummer = arguments['personnummer'].value |
| 96 client_cert = doit(base64pubkey, personnummer) |
| 97 print('Content-Type: application/x-x509-user-cert') |
| personnummer undefined, arguments = FieldStorage(None, None, [MiniFieldStorage('pubk...PbUFnz+qIWY/li6ZMYCMha+mLscSQLDz2y40nHQIDAQAB')]), ].value = [MiniFieldStorage('pubkey', 'MIIBIjANBgkqhkiG9w0B...KHPbUFnz+qIWY/li6ZMYCMha+mLscSQLDz2y40nHQIDAQAB')] |
| /usr/lib/python3.11/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('pubk...PbUFnz+qIWY/li6ZMYCMha+mLscSQLDz2y40nHQIDAQAB')]), key='personnummer') |
| 534 if item.name == key: found.append(item) |
| 535 if not found: |
| => 536 raise KeyError(key) |
| 537 if len(found) == 1: |
| 538 return found[0] |
| builtin KeyError = <class 'KeyError'>, key = 'personnummer' |
KeyError: 'personnummer'
add_note =
<built-in method add_note of KeyError object>
args =
('personnummer',)
with_traceback =
<built-in method with_traceback of KeyError object>