Closed Krayphysh closed 6 years ago
Could you post the log file?
This issue is consistent, it happens during broadcasting as well.
sure :-)
I'm still in the learning phase at the moment, I've only had a few weeks worth of experience with this. Where would I locate the proper log? The information under data.log in the HackQ_Trivia directory only says this: INFO:root:{'error': 'Auth not valid', 'errorCode': 105}. I've taken care of the root issue so I don't believe that's the log that I'm looking for. I used the command import logging.basicConfig(level=logging.INFO} and got this info: bash: syntax error near unexpected token `(' Is there somewhere else that I should be looking for a proper log file? Thanks for your help! :-)
The log file you are looking at is the only one. I have updated the program so an error would be raised saying the connection settings are invalid when it is detected. Your bearer token is probably incorrect, which is causing HQ to not send you any information.
Awesome, and thanks for the help! I'll check out my bearer token and see if that corrects my issue.
No problem. If you have trouble finding the correct bearer token and user ID, you can find 2 you can use in gjacobs314's HackQ for Swift repository: https://github.com/gjacobs314/HQTrivia.
You were correct! It seems I didn't copy the entire bearer token. For reason's I can't quite explain, I copied about 99% of the token but left just a bit behind. Thanks again, everything is working great now!
That's great! Let me know if you have any more problems.
Getting this error, any idea where the issue lies? :-)
python3 hq_main.py
getting
Show not on. Traceback (most recent call last): File "hq_main.py", line 37, in
next_time = datetime.strptime(response_data["nextShowTime"], "%Y-%m-%dT%H:%M:%S.000Z")
KeyError: 'nextShowTime'