New client - parse error reading JWS

I'm using a request to get all the urls:

acme_base_url = "https://172.19.191.236:14000" #(this is my pebble server running in a container)

list_directory = (requests.get(url=acme_base_url+"/dir", verify=False)).json()

new_acct_url = list_directory['newAccount']

printing new_acct_url gives me : https://172.19.191.236:14000/sign-me-up

here is the entire answer from the get request:

{'keyChange': 'https://172.19.191.236:14000/rollover-account-key', 'meta': {'externalAccountRequired': False, 'termsOfService': 'data:text/plain,Do%20what%20thou%20wilt'}, 'newAccount': 'https://172.19.191.236:14000/sign-me-up',
'newNonce': 'https://172.19.191.236:14000/nonce-plz', 'newOrder': 'https://172.19.191.236:14000/order-plz', 'revokeCert': 'https://172.19.191.236:14000/revoke-cert'}

1 Like