You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError("We've temporarily disabled support for PDF summarisation whilst we work on a more efficient process for extracting PDF text. We're very sorry for the inconvenience, this feature will be back very soon.");
264
+
}
265
+
returnresponse.text();
266
+
})
260
267
.then(parsedText=>{
268
+
console.log("Parsed text: "+parsedText);
261
269
callback(null,parsedText);// First argument is error, which is null in this case
262
270
})
263
271
.catch(error=>{
264
-
handleSummaryError(domain,sectionTitle,error);// Store the error message
265
-
reject(error);// Continue with the existing flow
272
+
console.log("Error: "+error);
273
+
handleSummaryError(domain,sectionTitle,error.toString());// Store the error message
274
+
callback(error,null);// Pass the error to the callback
0 commit comments