Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF Station Cause APRS Application To Fail #278

Open
kb1lqc opened this issue Oct 23, 2017 · 3 comments
Open

RF Station Cause APRS Application To Fail #278

kb1lqc opened this issue Oct 23, 2017 · 3 comments

Comments

@kb1lqc
Copy link
Member

kb1lqc commented Oct 23, 2017

Summary

KB1LQC-1 Base Station was operating on a Raspberry Pi fine for almost two weeks. Once I placed KB1LQC-2, a RF station nearby, I caused a fault to happen and the aprs application quit

Problem Explanation

Provide a more in-depth explanation of the problem or feature if applicable

Environment

Software

Faraday Software V 0.0.1016

Hardware

Let us know about what hardware you are using if applicable. This includes:
Rapsberry Pi 3

Supporting Information

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/faraday/aprs.py", line 113, in aprs_worker
    stationData = getStationData(stations)
  File "/usr/local/lib/python2.7/dist-packages/faraday/aprs.py", line 213, in getStationData
    data = r.json()
  File "/home/pi/.local/lib/python2.7/site-packages/requests/models.py", line 850, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 516, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 374, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 404, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@kb1lqc
Copy link
Member Author

kb1lqc commented Nov 6, 2017

Again after a long time

2017-11-05 16:32:22,070 - APRS - INFO - Tracking 2 Faraday stations...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/faraday/aprs.py", line 113, in aprs_worker
    stationData = getStationData(stations)
  File "/usr/local/lib/python2.7/dist-packages/faraday/aprs.py", line 213, in getStationData
    data = r.json()
  File "/home/pi/.local/lib/python2.7/site-packages/requests/models.py", line 850, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 516, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 374, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 404, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@kb1lqd
Copy link
Contributor

kb1lqd commented Nov 6, 2017 via email

@reillyeon
Copy link
Collaborator

We should add a try/except block around JSON decoding and both ignore the error and log the malformed input for debug analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants