Open bogdanst24 opened 1 week ago
We see below error locally and through centrally deployed LaunchEvent add-ins on Classic Outlook (2409):
"stack":"TypeError: Network request failed\n at Anonymous function....","message":"Network request failed"
For us it is transient in nature and usually resolves itself in a restart or two after the Add-in bundle.js has been updated. This error have been present for ~1-2 months now.
Easiest to replicate this on local (for us) has been: 1) Have Outlook running in a way that you have triggered the Add-ins (we have local, dev, and production so have 3) 2) Update the add-in code in the WEF cache folder (for one of them is enough) 3) Restart Outlook to reload the bundle.js 4) See you get Network errors from the logs 5) Restart Outlook few times (while checking logs if the network errors are gone) 6) Eventually you will have all add-ins with network connectivity and the problem disappears
We have seen this problem appearing when: 1) Update the add-in bundle.js via file system copy 2) Update the add-in bundle.js via cache-expiry from the hosted address associated with manifest.xml
@bogdanst24 does above seem like a plausible scenario to you?
It could be plausible, but from what I can tell the issue is not only limited to Classic Outlook. I remember solving some customer issues in the past by simply removing the WEF cache folder and so forcing Outlook to fetch everything.
Hi @bogdanst24 Do you see this issue on New Outlook and Outlook Web also? Also, please capture logs and share with us, that will help us to debug further - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues .
Do you see this issue on New Outlook and Outlook Web also?
Yes, we had such reports and we can see such failures in our logs from non desktop clients. I don't currently have a user I can get in a call with to collect the logs but I'll try to find one. What I remember from previous troubleshooting sessions, is that the requests are never registered in the network tab.
What about the Outlook Desktop?
Hi @bogdanst24 Can you help us with the errors on all platforms? Is it the same error everywhere?
Yes, that is the error _response: 'Error code = 15\n',
Provide required information needed to triage your issue
For some users of our Event-based Outlook Web Add-in, the Fetch/XMLHttpRequest requests are failing with "A connection with the server could not be established". The triggering events are
onMessageCompose
andonMessageRecipientsChanged
. The requests are made against a storage account using a valid Shared Access Signature. In all of the cases we were able to troubleshoot with the users, they were able to use the Shared Access Signature from the browser directly, so there is no problem with the SAS validity.This is a problem we see happening randomly for many of our customers. Not all their users, only some. I am not talking about a local environment, but a production one with over 100k active users. General/obvious issues should be out of the question as everything still works as expected for the majority of users.
Your Environment
Expected behavior
GET requests are working in all event-based actions.
Current behavior
GET requests are sometimes failing with [TypeError: Network request failed].
Steps to reproduce
Cannot reproduce locally without involving fiddler. In this case, after allowing fiddler to capture the traffic, it only works with it. However this might be a local issue as the local infrastructure is more comples.
Provide additional details
We have an automatic retrial mechanism on requests that have XMLHttpRequest as the last retry for gathering information. The request-response is the one shared above - "A connection with the server could not be established". I've been in several troubleshooting calls trying to figure it out and I was never able to put the finger on the issue. My observations:
Fetch request error:
XMLHttpRequest error: