mistergreen / WAAC

Web-enabled Arduino Aquarium Controller
Other
9 stars 5 forks source link

E-Mail test show wrong result #10

Closed LuckyLuzz closed 6 years ago

LuckyLuzz commented 6 years ago

Hey, the test mail function in "Settings" is somehow not working. The E-Mail is sending but it shows that it is not and then the website loading but nothing happend.

Could you check that?

Thanks :)

mistergreen commented 6 years ago

Can you be more specific?

The E-Mail is sending but it shows that it is not and then the website loading but nothing happend.

I don't understand. I entered my email, hit test, I received the email in my inbox. No error messages popped up. I hit 'save' at the bottom of the settings page to saving the email.

LuckyLuzz commented 6 years ago

Alright, what I did is: e-mail --> test --> I get the mail --> waiting circle but nothing happend -->press "save" --> nothing happend

grafik

IP Address: 10.1.176.22 SUCCESS - Found index.htm file. waiting for sync Transmit NTP Request Receive NTP Response memory 118852 user pass 14981 HTTP/1.1 200 OK Server: nginx/1.12.2 Date: Mon, 28 May 2018 13:50:12 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding

d php mail sent 0

then press "cancel" --> Error message

grafik grafik

then the server is not reacheble anymore --> I have to press "reset" to start it again

If you like we could try a teamviewer session.

Regards

mistergreen commented 6 years ago

hmm. That's a sign the ESP32 crashed when you hit test. You should see the ESP32 restart in the serial output.

Can you try to save the email but don't hit 'test email'?

mistergreen commented 6 years ago

When I saw

d php mail sent 0

I think I had it crashed too at some point but it's working for me. Will look into it.

LuckyLuzz commented 6 years ago

Hey, well I can save the adresse before hiting "test". But as I hit "test" it has the same result as before.

Newest Master is installed.

mistergreen commented 6 years ago

Can you confirm that the ESP32 crashed? It should output in the serial monitor or forces you to log back into the website.

It would be good if I have the same result as you so I can debug it.

LuckyLuzz commented 6 years ago

Hey, it definetly crashes. There is no other serial output as the one that i posted already. What do you mean with log back into the Website? It loads the site but nothing happend.

So how about teamviewer session? You can connect to my Computer and check things there. Just sent me a mail with a ID request.

That is my devkit: http://mh.nodebb.com/topic/2/mh-et-live-esp32-devkit

mistergreen commented 6 years ago

Go ahead and update to the latest master. I think you got caught in an infinite loop when getting feedback from my server. When my ESP32 crashes, it restarts. Let's see if this fixes it.

LuckyLuzz commented 6 years ago

I did update to latest master. esp still crash, the serial output is changed:

SUCCESS - Found index.htm file. waiting for sync Transmit NTP Request Receive NTP Response memory 118848 user pass 27098 success ajax HTTP/1.1 200 OK Server: nginx/1.14.0 Date: Sat, 02 Jun 2018 08:16:51 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding

22 to: lucky.luzz@gmx.dephp mail sent 0

mistergreen commented 6 years ago

The email sent to your inbox sometimes takes a while. It's just how the internet works :) Do you have the latest ESP32 core libraries by the way? https://github.com/espressif/arduino-esp32

I updated mine a few months ago.

LuckyLuzz commented 6 years ago

yeah i got the mails, but still same problem. Also I found out that I have the same crash problem as I want to add a device. But that happend just sometimes. I have sent you a mail, please check you inbox.

I installed al the arduino stuff just last week, so its up-to-date.

LuckyLuzz commented 6 years ago

hey, your bugfix worked, i didn't see that you have changed something within the wwwsettings lib so I didn't replaced it with master. Sorry...

I guess it can be closed.

mistergreen commented 6 years ago

cool. good to know it works.