Random 404 responses to ExecuteRichApiRequest http POST requests

Justin Fitch 0 Reputation points
2024-07-12T18:43:23.81+00:00

How can I prevent frequent 404 responses to a Post request to "ExecuteRichApiRequest" (https://usc-excel.officeapps.live.com/x/_vti_bin/EwaInternalWebService.json/ExecuteRichApiRequest?waccluster=US1 ) in my JavaScript API-built excel add-on?

I recently began encountering frequent but intermittent RichApi internal errors all over my plugin, where I had never had issues before. Using a function to retry failed data load processes or placing 1-second timeouts between function calls seem to work as a temporary solution, suggesting a timing issue, but I'm not sure the actual cause of the 404 or why async/await functions and "await context.sync()" doesn't accomplish the same thing.

What could be causing this issue, and how can I fix it?

Thanks in advance for any help.

UPDATE: Bizarrely, I resolved this situation by reverting the project to an old commit and manually merging all of the updates back in within the IDE. The final project has no discernable difference from the version getting all of the 404s, but its working now. I guess this is where I shrug and move on...

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
938 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,709 questions
{count} votes