Need confirmation about Failed Uploading Cases (500)

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Need confirmation about Failed Uploading Cases (500)

Post by josh »

Looking at the code a bit I think I have workaround for you. Open the file csweb/src/api/app/swagger.json in a text editor. On line 1025 you will find:

Code: Select all

        "modifiedTime": {
          "type": "string",
          "description": "Modified time in RFC3339 format ( e.g. 1985-04-12T23:20:50.52Z)",
          "format": "date-time"
        },
Remove the line that starts with "format". You would end up with:

Code: Select all

        "modifiedTime": {
          "type": "string",
          "description": "Modified time in RFC3339 format ( e.g. 1985-04-12T23:20:50.52Z)"
        },
I'm still not sure why you are getting errors reading the dates but this change will remove the date check altogether and should hopefully prevent that error.
lusia
Posts: 49
Joined: March 28th, 2018, 4:56 am

Re: Need confirmation about Failed Uploading Cases (500)

Post by lusia »

Dear Josh,

I've tried to remove the line as you suggested to me.
The synchronization runs perfectly fine when I try it via the desktop.
However, I'm still waiting from our surveyors whether they still have the error or not.
I'll inform you the update later.
Thank you, Josh.

Warm Regards,
lusia
lusia
Posts: 49
Joined: March 28th, 2018, 4:56 am

Re: Need confirmation about Failed Uploading Cases (500)

Post by lusia »

Dear Josh,
Sorry to interrupt you again regarding this matter.
Our surveyor successfully synchronize the cases to the csweb. But another problem arises due to I removed the line "format: date-time" in the swagger.json file. Their previously field notes was missing from the csdb. Even when they re-synchronize their csdb file, but the field note still can't be synchronized.
Kindly please help me regarding this new problem.
Thank you in advance.

PS: I've sent you one of csdb files that causes the error when I sync it via PM.

Warm Regards,
lusia
Post Reply