-
Notifications
You must be signed in to change notification settings - Fork 1.2k
can't created repository,response request body missing #8187
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
Comments
Hi @firstsaofan, thank you for the very detailed bug report 🙂 It seems like there is a bug in the code generator. The I'll investigate that further and provide a fix soon. Just note that I won't be available next week. |
Any update on this? I've tried numerous ways to create a snapshot repository using the client:
The first one fails with The other report the same error as in the original bug report. This is the very first thing we tried to do with the new client when migrating from NEST and is currently blocking further progress. |
@cguedel I was not available the past two weeks, but a partial fix is already pushed to a branch. A little bit more work is required before I can release a fixed package. You can expect that to happen this week. There currently is no workaround. |
This is fixed in the latest release. |
Elastic.Clients.Elasticsearch version:
Elasticsearch version:8.13.4
docker compose.yml
.NET runtime version:
.Net8
Operating system version:
Ubuntu 20 and Windows10
Description of the problem including expected versus actual behavior:
can’t create repository by code call ES,
I have modified the config.yml file of ES and added path.repo. I can use Postman to test the request for create repository, and everything is normal.
But I use Elastic Clients Elasticsearch method to create RepositoryAsync, but encountered an error message stating that the request body is missing. However, in the SharedFileSystemRepository class, type is set by default. In fact, I only need to pass location, and I am not sure what I am missing.
error info:
Steps to reproduce:
2.Simple example unit test code:
Debugging, break the breakpoint to line 22, and check the value of res to see the error message
Expected behavior
Like Postman, successfully created repository
actual
OriginalException: Elastic.Transport.TransportException: Request failed to execute. Call: Status code 400 from: PUT /_snapshot/my-fs-epository. ServerError: Type: parse_exception Reason: "request body is required"
The text was updated successfully, but these errors were encountered: