[BUG] Refit.ApiException: Response status code does not indicate success: 400 (Bad Request). at Refit.RequestBuilderImplementation.<>c__DisplayClass14_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in /_/Refit/RequestBuilderImplementation.cs:line 288 --- End of stack trace from previous location ---
The machine works normally, but an error is reported when it is placed on the server! Server version Windows Server 2022 datacenter 21h2!
Reinstall solution!
I have the same problem too, I can get response body, but after that poll retry the request due to status code 400 We use rancher k8s on centos
Same exception thrown here when deployed to Azure Functions (in process) running on windows (Refit 6.3.2, strict .NET6 LTS, POST method) Works locally in simulated functions environment Have tried [Body(buffered:true)] and custom implementation of IHttpContentSerializer as seen in https://github.com/reactiveui/refit/issues/1122#issuecomment-1113400824 with no luck Even tried to pass in a string as [Body] replacing the sorcery in the serialization proces It does not seem possible to create the request with Refit in this environment
Back to vanilla HttpClient 🥱
This doesn't seem related to Refit. If someone can provide more information that shows that it is related to Refit, please comment and we can reopen.
@anaisbetts In my case you are absolutely correct, that this is not related to Refit. It was a configuration issue on Azure.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.