Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StudyID for the CARP Web Services can only be an integer #66

Closed
barnabashomola opened this issue Jun 11, 2020 · 2 comments
Closed

StudyID for the CARP Web Services can only be an integer #66

barnabashomola opened this issue Jun 11, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@barnabashomola
Copy link

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: 'package:carp_webservices/carp_service/carp_datapoint.dart': Failed assertion: line 55 pos 12: 'int.tryParse(studyId) != null': Study ID (ea7d63f7-3c42-43e8-ba4f-2c02ae63a272) for the CARP Web Services can only be an integer.

The Study ID can only be integer, although my Study ID is a string ("ea7d63f7-3c42-43e8-ba4f-2c02ae63a272"), therefore I can't upload CARPDataPoint because the CARPDataPoint.fromDatum constructor cannot be called.

Is it by design and my Study ID should be changed to integer or should CAMS support string Study ID's as well?

@barnabashomola barnabashomola added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Jun 11, 2020
@bardram bardram self-assigned this Jun 18, 2020
@bardram
Copy link
Contributor

bardram commented Jun 18, 2020

This problem goes a while back to the old CARP web services. See this issue #16.

@bardram
Copy link
Contributor

bardram commented Jun 18, 2020

Should be fixed with release 0.4.3 - see

Also tested with the study_id provided above, and my unit tests are successful.

@bardram bardram closed this as completed Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants