I cloned and started the server ,
@app.route('/', methods = ['GET','POST'])
def index():
data = requests.get('https://employee-data-platform.vercel.app/api/fetchall')
response = data.json()
# Execute query to select all records from payroll table
#https://employee-data-platform.vercel.app/api/fetchall
This suggests that data is an object returned from a requests call, and calling .json() on it is causing the JSONDecodeError because the response body is not valid JSON.
I cloned and started the server ,
@app.route('/', methods = ['GET','POST'])
def index():
data = requests.get('https://employee-data-platform.vercel.app/api/fetchall')
response = data.json()
# Execute query to select all records from payroll table
#https://employee-data-platform.vercel.app/api/fetchall
This suggests that data is an object returned from a requests call, and calling .json() on it is causing the JSONDecodeError because the response body is not valid JSON.