Skip to content

HTTP Server Errors (Similar to #19) #39

@nicholasb2101

Description

@nicholasb2101

After tireless hours of running into compatibility issues, I've made it to somewhat of a point where I can take readings from my sensors. But when I try and view the via the built-in HTTP server I run into an error:

Exception happened during processing of request from ('192.168.1.237', 46793) Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_nobloc k self.process_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__ self.handle() File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle self.handle_one_request() File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request method() File "/home/pi/AirPi/outputs/http.py", line 323, in do_GET page = replace(page, "$time$", self.server.httpoutput.lastUpdate) AttributeError: 'HTTP' object has no attribute 'lastUpdate'

This occurs when I initially try to load the webpage (which I had previously enabled in~AirPi/cfg/settings.cfg). I haven't the slightest clue as to what I can do so any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions