Update
My asyncio powered GET requestor is giving me issues today, but only for certain workItem requests that it makes.
It is not a particular workItem that is causing the issue. I can retrieve a single workItem and then run the same function again and get rejected with the error:
Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
The line that triggers the error is: workItem = await resp.json()
in this function:
async def getWorkItem(self, session, url):
async with session.get(url, headers=headers) as resp:
workItem = await resp.json() <----------------- the problem
workItem = pd.json_normalize(workItem['value'])
workItem.columns = workItem.columns.str.replace(
'fields.', '', regex=False)
return workItem
How might I try to solve this decoding issue?