Show cool things you have done with our products


Post by Dev_Coppelis »

after importing .MPP file i got this error while saving data to database.
but when i reload the page i found that data are saved successfully
so i need to make loading mask to indicate that save process is working and remove the mask
in afterSync event but afterSync doesn't invoked because the fail error of saving data.
note that the error appears after a couple of seconds not immediately so i think it may concern with sync time
Attachments
MSImport save.png
MSImport save.png (46.82 KiB) Viewed 4981 times

Post by arcady »

Have you checked how server response looks? Do you provide "success : true" in the response?

Post by Dev_Coppelis »

yes it already has success : true
and the problem happens only with big data project

Post by Maxim Gorkovsky »

Have you tried to debug it? You can get this message if server response cannot be decoded:
var response    = this.decode(rawResponse);
if (!response || !response.success) {
  // warning thrown here
}
Try to debug response and see why it cannot be decoded?

Post by Dev_Coppelis »

Maxim Gorkovsky wrote:Have you tried to debug it? You can get this message if server response cannot be decoded:
var response    = this.decode(rawResponse);
if (!response || !response.success) {
  // warning thrown here
}
Try to debug response and see why it cannot be decoded?
where can i provide these lines ? in sync event ?

Post by Maxim Gorkovsky »

You can find these lines in the bundle (gnt-all-debug.js). Set breakpoint in the browser and see why you get inside that code block.

Post by Dev_Coppelis »

i uploaded my demo here.
can you check it please ?
viewtopic.php?f=4&t=9696

Post by Maxim Gorkovsky »

Have you included sync respose to your test case? Otherwise we have nothing to check.

Post by Maxim Gorkovsky »

As mentioned in next thread, issue is not reproducible. Please amend

Post by Dev_Coppelis »

dear maxim,
i searched for this error and i found the same issue hereviewtopic.php?f=1&t=7177
but the urls are not working so please can u provide me the correct ones ?

Post Reply