Closed wadda closed 8 years ago
I'm currently testing adding
while '\n' not in self.response: fragment = self.streamSock.makefile() self.response += fragment.readline()
` at line 128 in gps3.py to see if it resolves the problem without causing any more.
Partial success, after a 24 hour run the errors are few, and all at the beginning, so it seems.
netty@netty:~/Downloads$ python3 human.py Keyboard interrupt received Terminated by user Good Bye.
Expecting value: line 1 column 1 (char 0)Expecting value: line 1 column 1 (char 0)Expecting value: line 1 column 1 (char 0)Expecting value: line 1 column 1 (char 0)netty@netty:~/Downloads$
The socket read is run through the JSON
As you see this last ValueError, KeyError throw a error with extraneous data that is in the JSON object shipped from GPSD
I'm looking for a way to join this data with the data that is already in the buffer. I'm also open to ideas.