Skip to content

BadRequestException: sample parameter size must fall in the range (1, 500) #1890

@KSadomtsev

Description

@KSadomtsev

webapi 2.9

Expected behavior

The sample is successful generated or some human-readable error

Actual behavior

image

2021-06-02 07:45:23.438 ERROR 36 --- [nio-8080-exec-5] o.o.w.u.GenericExceptionMapper : javax.ws.rs.BadRequestException: sample parameter size must fall in the range (1, 500) at org.ohdsi.webapi.cohortsample.dto.SampleParametersDTO.validate(SampleParametersDTO.java:39) at org.ohdsi.webapi.service.CohortSampleService.createCohortSample(CohortSampleService.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

Steps to reproduce behavior

1)Generate any cohort
2)Samples
3)Enter the number of patients greater than 500

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions