loadURL server error (Raspberry Pi)
ard jonker
ard.jonker at xs4all.nl
Tue Oct 15 17:31:03 EDT 2019
Hi James,
On 15 Oct 2019, at 22:47, James Sentman <james at sentman.com> wrote:
> That being said, these two links are not the same, one has “value=1” and the other says “value=on” perhaps the difference is that simple?
Thanks for the hint, but I don't think so:
if($queryPairs["value"]=="on"){
ledSet($chip,$queryPairs["Relay"],1);
}
but I will look into this, as I should have done strcmp. Yet, the same code is on both machines.
>> On Oct 15, 2019, at 6:00 AM, ard jonker <ard.jonker at xs4all.nl> wrote:
>>
>> (querystring is 'Relay=8;value=1'). Yet only the X=245 gives this error in the Log window:
>> 15/10/2019 11:00:25 loadURL returns server error (3 for url "1
92.168
.0.245/?Relay=8;value=on"
I'm afraid not. First I thought it was about PHP7 on the failing machine, so removed that and used PHP5, but to no avail yet.
The weird thing is that it _does_ run on the one RPI, and not on the other.
James, when do you issue the Server Error 3? Is there a HTTP error/response equivalent?
Why is there nothing in the log file on the XTension machine? Not even when debug is on:
on wasberrycommand(chan, cmd)
loadurl "192.168.0.233/?Relay=" & chan & ";value=" & (cmd) with logging debug data
loadurl "1
92.168
.0.245/?Relay=" & chan & ";value=" & (cmd) with logging debug data
end
More information about the XTensionList
mailing list