TemperatureWebPanel -Err- Could not connect to YunServer 146 Connection refused

Hi,
I recently purchased Yun and tried executing the TemperatureWebPanel example.

After some difficulty, I got it working. However after I tried setting the RESt API Access to "with Password" option, I was not able to access neither the example, nor the LUCI console over the web.

I therefore pressed the reset key for WiFi for 10 seconds and was then able to access the Yun console over web. I reverted the changes to have the RESt API Access back to "Open".

However now, I am getting a weird message in the browser. When I try to access the URL (http://arduino.local/arduino/temperature) through browser, I get this message:
Could not connect to YunServer 146 Connection refused

I have tried restarting the uhttpd process, the bridge.py; but I believe the problem lies in communication between the Linino and MCU.

I tried reading the forum topics, but I believe none have experienced this issue.

I am new to Arduino world and hence thought of posting this question in the forum.

Looking forward for your help.

Please feel free to advise if we need any information.

Thanks and Regards,
Manoj.

Hi,
One more information. I tried accessing the TemperatureWebPanel example on SSH prompt using following command:
/usr/bin/curl http://localhost/arduino/temperature

I get the same error message
Could not connect to YunServer 146 Connection refused

Also when I access using URL (http://arduino.local/sd/TemperatureWebPanel), I see output on page as "Waiting for Arduino" and the response never comes back.

Thanks and Regards,
Manoj.

Hi,
I did a small change in code and it is now working.

I had earlier initialized the YunServer using following code:

..
..
YunServer server(80);
..
..

I changed it to the following and it started working again

..
..
YunServer server;
..
..

With this, I am now able to access the page correctly.

I am now working towards getting this enabled using the "With Password" (RESt API) functionality.

Any pointers in getting this (RESt API - "With Password") working is highly appreciated.

Thanks and Regards,
Manoj.