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

Connection failed, error: connection refused #271

Open
Gorkem-say opened this issue Nov 22, 2024 · 6 comments
Open

Connection failed, error: connection refused #271

Gorkem-say opened this issue Nov 22, 2024 · 6 comments

Comments

@Gorkem-say
Copy link

Hi, I am trying to upload to my custom esp32-c3 board for e-paper 1.54''. When I upload I got error, what can be the problem?

serial print::::

Connecting to: INNOVATION
WiFi connected at: 175.110.140.127
12:48:31
connection failed, error: connection refused

@G6EJD
Copy link
Owner

G6EJD commented Nov 22, 2024

Need more detail, but it looks like you aren't using the WiFi SSID and/or the correct password

@G6EJD
Copy link
Owner

G6EJD commented Nov 22, 2024

This could be an OWM issue as they now charge for API access and charge for excessive use, so your API may be invalid. You'd need to check your account.

@Gorkem-say
Copy link
Author

Thank you for your replies.

I think it is connected to WIFI because when I entered wrong SSID or password, It doesn't connect and doesn't get the time.

Do you suggest any other weather API websites so I can try?

Best regards

@G6EJD
Copy link
Owner

G6EJD commented Nov 25, 2024

I've reviewed the code and the Connection Refused message occurs when it tries to connect to OpenWeatherMapMap, so this is caused by an incorrect API key. You need to log into your OWM account and renew the key then renew in the code to recompile it.
If that doesn't work let me know your key and I'll try it on my browser to debug it for you, you may have to change the code to API 3.0 as 2.5 has been discontinued for some OWM users. Afterwards if you're worried you can always renew your API key.

Or send me via my website Google G6EJD contact me your source code and I'll test it.

@G6EJD
Copy link
Owner

G6EJD commented Nov 25, 2024

http://g6ejd.dynu.com

@Gorkem-say
Copy link
Author

I just sent an email to you..

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

2 participants