My application was developed using OFFICEjs and was functioning properly on LOCALHOST. However, last week it suddenly started throwing an error message - "XHR Error." This issue arose out of nowhere, as I hadn't made any changes to the code over the weekend.
The strange thing is that while the server seems to be working fine (I can access the data via URL in the browser), the client-side communication has completely broken down. No HTTPS requests are being sent or received anymore, neither through POST nor GET methods.
Even when manually entering the URL in the browser, the data is retrieved without any hitch, highlighting that the problem lies within the program itself. Despite my efforts over the past two days, I've been unable to pinpoint the root cause of this sudden communication breakdown between the client and server.
Additionally, I noticed a peculiar behavior change after removing a function call and directly making an HTTPS request within another function - now, there's no error thrown, but the request isn't sent at all. The same HTTPS call that used to work seamlessly before is now unresponsive.
async https_Last_Order_Number(){/*Function definition*/}
async send() {/*Function definition*/}