I have inherited a python script which runs daily, extracting total payments from 16 locations
and creating a csv file for import into our ERP GL application. The python script makes
16 API calls with same amount of tokens to extract this data. A week ago, the process stopped working.
The python log file shows an error: payment_response = payment_response['elements'] KeyError: 'elements'
When I start researching and going down that rabbit hole, the error messages keep changing until I get an error for one of the data points being null or empty.
This script has been running, non-stop for a few years. A small change was implemented a few weeks ago to add 3 API tokens and 3 locations. All was tested successfully and it has been running successfully.
For a person with very little python or API experience, what would you recommend be the next few steps for troubleshooting this puzzling issue?