Hi there,
I am having sort of a problem with my NodeMCU running the mega-20191123 version of ESP Easy. Connected to the node is a DHT22/AM3202 temperature and humidity sensor via GPIO 14. So far, everything works perfect.
I've configured one "generic http" controller, which is set to receive the values of the DHT22 every 30 seconds. The target web server is a php7.3-fpm installation, which is part of a smart metering system called "Volkszaehler".
Now, the data for both temperature and humidity are sent by the ESP and received by the PHP server and inserted into the database correctly, every 30 seconds...
... but the PHP server logs an error for every entry (that would be 2 every 30 seconds)
Dec 15 10:38:09 localhost php[471]: Script did not return a valid HTTP response. Maybe it has called exit() prematurely?
Dec 15 10:38:09 localhost php[471]: Script did not return a valid HTTP response. Maybe it has called exit() prematurely?
Dec 15 10:38:39 localhost php[471]: Script did not return a valid HTTP response. Maybe it has called exit() prematurely?
Dec 15 10:38:39 localhost php[471]: Script did not return a valid HTTP response. Maybe it has called exit() prematurely?
Now, I was running strace to see what is going on...
The server accepts a connection from the ESP Easy IP address and assigns the handle 31:
accept(6, {sa_family=AF_INET, sin_port=htons(57230), sin_addr=inet_addr("192.168.74.3")}, [128->16]) = 31
There's a lot in between - I can send the log if someone is willing to look into it...
poll([{fd=31, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
recv(31, 0x706bc0d7, 65337, 0) = -1 EAGAIN (Resource temporarily unavailable)
Not sure if this is really the cause of that error message...
send(3, "Script did not return a valid HT"..., 85, MSG_DONTWAIT) = 85
Any idea what might be going on here?
Thanks,
Alex
EspEasy causes error message on PHP Web Server
Moderators: grovkillen, Stuntteam, TD-er
Re: EspEasy causes error message on PHP Web Server
I found the solution... I changed the option
Controller Queue --> Check Reply: to "Check Acknowledgement"
That did the trick.
Controller Queue --> Check Reply: to "Check Acknowledgement"
That did the trick.
Who is online
Users browsing this forum: Bing [Bot] and 96 guests