Skip to content
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 (Godot) does not work #65722

Closed
Dunkhan opened this issue Sep 12, 2022 · 2 comments
Closed

HTTPClient (Godot) does not work #65722

Dunkhan opened this issue Sep 12, 2022 · 2 comments

Comments

@Dunkhan
Copy link

Dunkhan commented Sep 12, 2022

Godot version

v3.5.stable.mono.official [991bb6a]

System information

Windows 10

Issue description

The godot HTTPClient, when copying the code from the official tutorial on that page, does not appear to work. it prints the message "Resolving" and then the message "Connecting" over and over until the user ends the process.

I may have made an error or the tutorial might be out of date but I thought this was worth reporting either way. I know I can use an HTTPRequest node but I do not want to have to hack around using a node for something that I was intending to set up as a singleton service. It is a huge architecture restriction to have to use a node instance for this.

Steps to reproduce

create an HTTPClient instance and try to access it in the way that the tutorial describes

OR

download the project here: https://github.com/Dunkhan/GodotHttpBug
Uncomment the line marked "HTTPClient"
comment out the other test lines
Run the program

THEN

Watch the console for output

Minimal reproduction project

https://github.com/Dunkhan/GodotHttpBug

@raulsntos
Copy link
Member

raulsntos commented Sep 13, 2022

You are trying to connect to host https://www.reddit.com on port 80 which is HTTP, the port for HTTPS is 443.

@Dunkhan
Copy link
Author

Dunkhan commented Sep 14, 2022

Right you are, looks like a problem between keyboard and chair. I will just close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants