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

Pico W tls_client tls_client_err -14 #573

Open
GoldeggCoder opened this issue Nov 17, 2024 · 6 comments
Open

Pico W tls_client tls_client_err -14 #573

GoldeggCoder opened this issue Nov 17, 2024 · 6 comments
Assignees

Comments

@GoldeggCoder
Copy link

Recently, I attempted to transmit an HTTPS request using the Pico W. I cloned the example „tls_client“ and attempted to build it. This process was successful, but upon running the request on the Pico W, I encountered an error message indicating „tls_client_err -14“ after successfully resolving the domain. I am currently utilizing the Pico SDK version 2.0.

@Potzi123
Copy link

I have the same Problem pls help

@peterharperuk
Copy link
Contributor

ERR_RST: the connection was reset by the remote host

@GoldeggCoder
Copy link
Author

But I am using the basic example with the domain provided.(worldtimeapi) Why does they close the connection?

@peterharperuk peterharperuk self-assigned this Nov 18, 2024
@peterharperuk
Copy link
Contributor

peterharperuk commented Nov 18, 2024

It's not our website, but it appears to be down (actually just very slow). We need to change it to something else.

@GoldeggCoder
Copy link
Author

Yeah thanks for the help. I got it working for my own domain. However it is very slow. It takes about 20 seconds to send a request. (See #411) Any fix for that?

@lurch
Copy link
Contributor

lurch commented Nov 25, 2024

micropython/micropython#16233 suggests that many sites refuse to respond to requests without a User-Agent header, so maybe https://github.com/raspberrypi/pico-examples/blob/master/pico_w/wifi/tls_client/picow_tls_client.c#L11 ought to include a User-Agent header too?

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

No branches or pull requests

4 participants