I have a canvas app that connects to 3 SharePoint sites. I started getting inconsistent problems with the app not returning data from the lists, so I was looking at the connections. The SharePoint icon is no longer next to the connections, but clicking Edit does open the lists. I figured the weird issues and lack of SharePoint icon meant that I should remove and reattach the connection. When I try to remove the connection I get the following error and the whole app closes.
We are sorry, something went wrong
WebAuthoring abnormal termination.
Client date/time: 2022-10-20T16:26:51.577Z
Version: 3.22101.23 (v3.22101.23.238119988)
Session ID: 8d7afff3-65be-4aa1-80a0-7945797f3632
description: {"exception":{"message":"XMLHttpRequest error(string). {\"traceLevel\":3,\"message\":\"An error occurred in Document API document.removedatasourceasync, activity id 441090ed-a3df-41da-a3c3-5aac2abea208\",\"status\":500}","name":"UnhandledError","_isCritical":true,"detail":{"exception":{}}},"error":"[circular]","promise":{"_oncancel":null,"_nextState":null,"_state":{"name":"error","enter":"[function]","cancel":"[function]","done":null,"then":null,"_completed":"[function]","_error":"[function]","_notify":"[function]","_progress":"[function]","_setCompleteValue":"[function]","_setErrorValue":"[function]"},"_value":"[circular]","_isException":false,"_errorId":53,"done":"[function]","then":"[function]"},"id":53,"setPromise":"[function]"}
stack: UnhandledError: XMLHttpRequest error(string). {"traceLevel":3,"message":"An error occurred in Document API document.removedatasourceasync, activity id 441090ed-a3df-41da-a3c3-5aac2abea208","status":500}
at t [as constructor] (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:264311)
at new t (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:362917)
at @pa-client/appmagic-webauthoring.e._translateError (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:150823)
at @pa-client/appmagic-webauthoring.e._raiseTerminalError (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:150104)
at @pa-client/appmagic-webauthoring.e._unhandledException (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:150017)
at e.<anonymous> (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:148619)
at https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:453971
at Object.throw (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:454077)
at u (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:452851)
at Object.q [as _notify] (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/openSource/modified/winjs/js/base.js?v=3.22101.23.238119988:2:38070)
errorNumber: 0
errorMessage: XMLHttpRequest error(string). {"traceLevel":3,"message":"An error occurred in Document API document.removedatasourceasync, activity id 441090ed-a3df-41da-a3c3-5aac2abea208","status":500}
callStack: UnhandledError: XMLHttpRequest error(string). {"traceLevel":3,"message":"An error occurred in Document API document.removedatasourceasync, activity id 441090ed-a3df-41da-a3c3-5aac2abea208","status":500}
at t [as constructor] (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:264311)
at new t (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:362917)
at @pa-client/appmagic-webauthoring.e._translateError (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:150823)
at @pa-client/appmagic-webauthoring.e._raiseTerminalError (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:150104)
at @pa-client/appmagic-webauthoring.e._unhandledException (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:150017)
at e.<anonymous> (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/AppMagic.WebAuthoring.js?v=3.22101.23.238119988:2:148619)
at https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:453971
at Object.throw (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:454077)
at u (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/js/Core.js?v=3.22101.23.238119988:2:452851)
at Object.q [as _notify] (https://authoringcdn-prodwusil104.azureedge.net/v3.22101.23.238119988/studio/openSource/modified/winjs/js/base.js?v=3.22101.23.238119988:2:38070)
Any ideas?