refit icon indicating copy to clipboard operation
refit copied to clipboard

[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 ---

Open wj8400684 opened this issue 3 years ago • 1 comments

The machine works normally, but an error is reported when it is placed on the server! Server version Windows Server 2022 datacenter 21h2!

wj8400684 avatar Jul 30 '22 10:07 wj8400684

Reinstall solution!

wj8400684 avatar Jul 30 '22 10:07 wj8400684

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

auvansangit avatar Oct 24 '22 16:10 auvansangit

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 🥱

noontz avatar Sep 09 '23 09:09 noontz

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 avatar Sep 09 '23 18:09 anaisbetts

@anaisbetts In my case you are absolutely correct, that this is not related to Refit. It was a configuration issue on Azure.

noontz avatar Sep 11 '23 07:09 noontz

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.

github-actions[bot] avatar Sep 26 '23 00:09 github-actions[bot]