Added json handling to XeroUnauthorized for response on a 401 status that looks like this
{"Type":null,"Title":"Unauthorized","Status":401,"Detail":"TokenExpired: token expired at 04/09/2023 05:16:59","Instance":"6489df60-8891-470e-9268-a9a43f5da71e","Extensions":{}}
The Exception itself was erroring so it was falling through to a normal Exception
Added json handling to XeroUnauthorized for response on a 401 status that looks like this
{"Type":null,"Title":"Unauthorized","Status":401,"Detail":"TokenExpired: token expired at 04/09/2023 05:16:59","Instance":"6489df60-8891-470e-9268-a9a43f5da71e","Extensions":{}}
The Exception itself was erroring so it was falling through to a normal Exception