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

Failed to run examples and tests #70

Closed
ShootingKing-AM opened this issue Nov 13, 2022 · 0 comments · Fixed by #83
Closed

Failed to run examples and tests #70

ShootingKing-AM opened this issue Nov 13, 2022 · 0 comments · Fixed by #83

Comments

@ShootingKing-AM
Copy link

SK@SK-Desktop MINGW64 /d/Users/Documents/GitHub/aw-client (master)
$ D:/Users/user/AppData/Local/Programs/Python/Python310/python.exe d:/Users/Documents/GitHub/aw-client/examples/working_hours.py
Querying events...
  Day offset: 4:00:00

500 Server Error: Internal Server Error for url: http://127.0.0.1:5600/api/0/query/
Error message received: {'message': 'ParsingError("(None, \\"expected `Bool`, `Ident`, `LBrace`, `LBracket`, `LParen`, `Number`, or `String`\\")")'}
Traceback (most recent call last):
  File "d:\Users\Documents\GitHub\aw-client\examples\working_hours.py", line 137, in <module>
    query()
  File "d:\Users\Documents\GitHub\aw-client\examples\working_hours.py", line 90, in query
    res = aw.query(query, timeperiods)
  File "D:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\aw_client\client.py", line 339, in query
    response = self._post(endpoint, data, params=params)
  File "D:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\aw_client\client.py", line 55, in g
    raise e
  File "D:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\aw_client\client.py", line 52, in g
    r.raise_for_status()
  File "D:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://127.0.0.1:5600/api/0/query/
SK@SK-Desktop MINGW64 /d/Users/Documents/GitHub/aw-client (master)
$ make test
python -c "import aw_client"
pytest -s -vv tests/test_requestqueue.py
process_begin: CreateProcess(NULL, pytest -s -vv tests/test_requestqueue.py, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [test] Error 2
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

Successfully merging a pull request may close this issue.

1 participant