Internal server error when accessing Broadband API through Python script

I have been attempting to make a request to the API and parse the return via a Python script, via two different methods. Both return a 500: Internal Server Error with no further information, except an activityId and I don't have a clue what that refers to. Any help on what I'm doing wrong would be greatly appreciated - code excerpt below, minus actual key headers = { # Request headers 'Ocp-Apim-Subscription-Key': 'key', } postcode = 'MK158AN' response = requests.get('{}%7D'.format(postcode), headers=headers) print(response.json()) Thanks in advance

You're not signed in. Please sign-in to report an issue or post a comment.