case 4492

This commit is contained in:
2023-03-21 23:23:54 +00:00
parent fa92899783
commit 664e4f1e51
4 changed files with 15 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
export default {
version: "8.0.39",
version: "8.0.40",
copyright: "© 1999-2023, Ground Zero Tech-Works Inc."
};

View File

@@ -484,8 +484,17 @@ export default {
let r = await fetch(that.APIUrl(route), fetchOptions);
that.statusEx(r, data);
r = await that.extractBodyEx(r);
return r;
let rBody = await that.extractBodyEx(r);
//Bad request error need to see the request in the log for troubleshooting more esoteric errors remotely
//case 4485
if (r.status == 400) {
window.$gz.store.commit(
"logItem",
"API error on upsert: bad request, response body=" + JSON.stringify(rBody)
);
}
return rBody;
} catch (error) {
if (isLogin == false) {
handleError("UPSERT", error, route);