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

ss_monitor error #2

Open
charredchar opened this issue Oct 18, 2020 · 0 comments
Open

ss_monitor error #2

charredchar opened this issue Oct 18, 2020 · 0 comments

Comments

@charredchar
Copy link

I have been attempting to use your ss_monitor along with od_server in order to watch a folder for camera images and trigger an alert when an object of interest is present. I managed to get the od_server updated and running with Python 3.8 and TensorFlow 2.3 but ss_monitor is giving me a lot of issues. Currently when ever I sees a new file it will send it to od_server as the following:

127.0.0.1 - - [18/Oct/2020 02:31:50] "�[31m�[1mGET /?file_dir=C:/Users/char/Desktop/MyHouse/image%5Clivingroom-hdt.20201018_023146261.jpg HTTP/1.1�[0m" 400 -

But the ss_monitor instantly returns the following error and stops responding:

C:\Users\char\Desktop\MyHouse>python ss_monitor.py Sun Oct 18 02:31:21 2020 Starting Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\watchdog\observers\api.py", line 203, in run self.dispatch_events(self.event_queue, self.timeout) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\watchdog\observers\api.py", line 376, in dispatch_events handler.dispatch(event) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\watchdog\events.py", line 330, in dispatch self.on_any_event(event) File "ss_monitor.py", line 93, in on_any_event rj = r.json() File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 357, in loads return _default_decoder.decode(s) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I have been attempting to fix the directory path it sends as well, replacing the %5c with a / as it should be but I have not had any luck. I do not know if the two are related.

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

1 participant