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,12 +1,12 @@
{
"name": "ayanova",
"version": "8.0.39",
"version": "8.0.40",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ayanova",
"version": "8.0.39",
"version": "8.0.40",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.3.0",
"@fortawesome/free-regular-svg-icons": "^5.15.4",

View File

@@ -1,6 +1,6 @@
{
"name": "ayanova",
"version": "8.0.39",
"version": "8.0.40",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

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);