Closed suzuki-shunsuke closed 1 year ago
This issue exists in Graylog 3.0.0. Error message is a bit different
{
"type": "ApiError",
"message": "Can not construct instance of org.graylog2.rest.resources.system.indexer.responses.IndexSetSummary, problem: Null creationDate\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@20da7f5d; line: 22, column: 9]"
}
any update here?
Same error here. Trying to access api with Python:
{'type': 'ApiError', 'message': 'Cannot construct instance of `org.graylog2.rest.resources.system.indexer.responses.IndexSetSummary`, problem: Null creationDate\n at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 807]'}
The API documentation describes that the parameter is optional.
Any updates?
Hi, I am a new Open Source Contributor. I would like to work on this issue. Can you please provide more insights on this issue?
STILL happening on GL 4....
STILL happening on GL 4....
Haha, not the only reason quitting GL.
The parameter "creation_date" of Create Index Set API is required, but I think this should be optional. This value seems to be the time the index set is created, and the time should be decided by the server side.
Expected Behavior
Current Behavior
Response HTTP Status Code: 400 Response Body:
Possible Solution
Make the default value of the parameter "creation_date" the datetime when server receives the request.
Steps to Reproduce (for bugs)
Run a Index Set Create API request whose creation_date parameter is not specified. It is convenient to use the API browser.
http://localhost:9000/api/api-browser#!/System/IndexSets/save_post_1
Here is the sample request body.
Context
Your Environment
Here is the docker-compose.yml which I use.