cph-cachet / carp.sensing-flutter

CARP Mobile Sensing for Flutter, including mobile sensing framework, data backend support, and the CARP mobile sensing app.
MIT License
80 stars 28 forks source link

TimeOutException after carp.error-datum upload #221

Closed MadsVSChristensen closed 3 years ago

MadsVSChristensen commented 3 years ago

After trying to get battery datum on simulator, an error datum fails on upload. It is missing studyid and userid. This causes timeoutexceptions afterwards.

flutter: [CAMS INFO] Uploading data point to CARP - dk.cachet.carp.error
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: CarpServiceException: 400 Bad Request -  Validation failed for argument [2] in public dk.cachet.carp.webservices.dataPoint.domain.DataPoint dk.cachet.carp.webservices.dataPoint.controller.DataPointController.create(java.lang.String,org.springframework.web.multipart.MultipartFile,dk.cachet.carp.webservices.dataPoint.dto.CreateDataPointRequestDto) with 2 errors: [Field error in object 'createDataPointRequestDto' on field 'carpHeader.studyId': rejected value [null]; codes [NotNull.createDataPointRequestDto.carpHeader.studyId,NotNull.carpHeader.studyId,NotNull.studyId,NotNull.java.lang.String,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [createDataPointRequestDto.carpHeader.studyId,carpHeader.studyId]; arguments []; default message [carpHeader.studyId]]; default message [must not be null]] [Field error in object 'createDataPointRequestDto' on field 'carpHeader.userId': rejected value [null]; codes [No<…>
bardram commented 3 years ago

Fixed in release 0.31.1