kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

add debugging code for cache update issue #931

Closed MartijnR closed 6 years ago

MartijnR commented 6 years ago

see Krikor's email on 2/1

MartijnR commented 6 years ago

The error message should have some additional information. It is likely that some of these are missing:

The error will now have this appendix: Received: { openRosaServer: ..., openRosaId:.., survey hash: .... }

My guess is the hash might be missing from the /formList item

MartijnR commented 6 years ago

Ah yes, indeed the hash is not available! From Krikor's log:

2018-01-30T20:13:58.299Z openrosa-communicator survey.info { formID: 'F_FORM5_4-9dc7bee4c7ec873808e5204b384c261c-query',
      name: 'Form 5',
      majorMinorVersion: '4',
      version: '4',
      downloadUrl: 'blahblah',
      manifestUrl: 'blahblah' }
2018-01-30T20:13:58.302Z openrosa-communicator sending get request to url: blah
MartijnR commented 6 years ago

@kkrumlian, can I remove the extra logging to debug this?

I'm about to (finally) start conversion to ES6 for the server-side JS code so it would help to minimize the diff between the repos.