-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
HttpClient (dotnet) does not work #65723
Comments
I was going to report this and #65722 as one bug but I decided that they don't look on the surface like they have the same cause. Nevertheless they are possibly related |
Ok this is a bigger issue than I first realised. I thought I could convert my project to use the Godot HTTPRequest node. However a lot of other libraries also use HttpClient as the basis of their function, for example XDocument.Load and IdentityModel.OidcClient. |
Sounds like a duplicate of #36958 |
You could be right. I saw that one while looking for similar issues in the tracker but the error message is different so I discounted it. |
To get the changes in pull 64089 do I have to locally build the master branch? |
You can build the master branch using the instructions in the mono module README.md or wait for the Beta 1 release which is coming soon and will have .NET support. |
Now that the beta is out I can confirm this is fixed in 4.0 |
Godot version
v3.5.stable.mono.official [991bb6a]
System information
Windows 10
Issue description
Attempting to access any url whatsoever using a dotnet HttpClient instance result in an exception
System.Net.WebException: Error: TrustFailure
with a bunch of inner exceptions terminating at
I understand this might be a mono bug, or a dotnet bug but I wanted to report it here first as I am not able to determine where the fault lies and godot is the direct parent of my project in terms of frameworks.
PLEASE NOTE:
I have implemented my main project using this libary on linux and it works fine. This is an issue that only appears to affect windows. I have not tested it on any platform other than linux and windows.
Steps to reproduce
us an System.Net.Http.HttpClient to connect to any website and attempt to GET the html from it.
OR
download the example project at https://github.com/Dunkhan/GodotHttpBug
Uncomment the line marked "HttpClient (dotnet)"
comment out the other test lines
Run the program
Minimal reproduction project
https://github.com/Dunkhan/GodotHttpBug
The text was updated successfully, but these errors were encountered: