wakatime / legacy-python-cli

Command line interface used by all WakaTime text editor plugins.
https://wakatime.com/
BSD 3-Clause "New" or "Revised" License
1.02k stars 84 forks source link

Dashboard not updating despite log showing accepted API calls. #263

Open ChristopherSchubert opened 3 years ago

ChristopherSchubert commented 3 years ago

I'm using several plugins and everything seems to be working (logs, API endpoints, etc.) but my dashboard and profile stopping updating with recent activity this morning at around 8AM.

The plugins I'm using:

All plugins are set to debug, and the log is full of requests with a 202 response. Example:

{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463760.861114, "caller": "wakatime\\dependencies\\__init__.py", "lineno": 145, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "Parsing dependencies not supported for shell.BashParser"}
{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463760.861114, "caller": "wakatime\\api.py", "lineno": 45, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"}
{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463760.861114, "caller": "wakatime\\api.py", "lineno": 51, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "[{'time': 1619463760.861114, 'entity': 'C:/Users/Chris/com.appalachia/appa/cmd/servers/verdaccio.sh', 'type': 'file', 'category': None, 'is_write': False, 'project': 'com.appalachia', 'branch': 'main', 'language': 'Bash', 'dependencies': [], 'lines': 17, 'lineno': None, 'cursorpos': None, 'user_agent': 'wakatime/13.0.7 (Windows-10-10.0.19041-SP0) Python3.8.1.final.0 vscode/1.55.2 vscode-wakatime/5.0.1'}]"}
{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463761.5251157, "caller": "wakatime\\dependencies\\__init__.py", "lineno": 145, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "Parsing dependencies not supported for shell.BashParser"}
{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463761.5251157, "caller": "wakatime\\api.py", "lineno": 45, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"}
{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463761.5251157, "caller": "wakatime\\api.py", "lineno": 51, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "[{'time': 1619463761.5251157, 'entity': 'C:/Users/Chris/com.appalachia/appa/cmd/servers/verdaccio.sh', 'type': 'file', 'category': None, 'is_write': True, 'project': 'com.appalachia', 'branch': 'main', 'language': 'Bash', 'dependencies': [], 'lines': 17, 'lineno': None, 'cursorpos': None, 'user_agent': 'wakatime/13.0.7 (Windows-10-10.0.19041-SP0) Python3.8.1.final.0 vscode/1.55.2 vscode-wakatime/5.0.1'}]"}
{"now": "2021/04/26 15:02:41 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463760.861114, "caller": "wakatime\\api.py", "lineno": 302, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "{'response_code': 202, 'results': [[{'data': {'branch': 'main', 'category': 'coding', 'created_at': '2021-04-26T19:02:38Z', 'cursorpos': None, 'dependencies': [], 'entity': 'C:/Users/Chris/com.appalachia/appa/cmd/servers/verdaccio.sh', 'id': '37e960fa-5fb3-4ad6-a406-ed60339d0ec8', 'is_write': False, 'language': 'Bash', 'lineno': None, 'lines': 17, 'machine_name_id': None, 'project': 'com.appalachia', 'time': 1619463760.861114, 'type': 'file', 'user_agent_id': None, 'user_id': 'a4ce18cd-ea1f-4e94-8067-ea0b06779047'}}, 201]]}"}
{"now": "2021/04/26 15:02:42 -0400", "version": "13.0.7", "plugin": "vscode/1.55.2 vscode-wakatime/5.0.1", "time": 1619463761.5251157, "caller": "wakatime\\api.py", "lineno": 302, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\appa\\cmd\\servers\\verdaccio.sh", "level": "DEBUG", "message": "{'response_code': 202, 'results': [[{'data': {'branch': 'main', 'category': 'coding', 'created_at': '2021-04-26T19:02:39Z', 'cursorpos': None, 'dependencies': [], 'entity': 'C:/Users/Chris/com.appalachia/appa/cmd/servers/verdaccio.sh', 'id': '05a14cfb-1800-4394-91d8-b721ea292902', 'is_write': True, 'language': 'Bash', 'lineno': None, 'lines': 17, 'machine_name_id': None, 'project': 'com.appalachia', 'time': 1619463761.525116, 'type': 'file', 'user_agent_id': None, 'user_id': 'a4ce18cd-ea1f-4e94-8067-ea0b06779047'}}, 201]]}"}
{"now": "2021/04/26 15:02:58 -0400", "version": "13.0.7", "plugin": "Rider/2019.3.4 Rider-wakatime/12.0.7", "time": 1619463764.476, "caller": "wakatime\\dependencies\\__init__.py", "lineno": 145, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\Configuration.cs", "level": "DEBUG", "message": "Parsing dependencies not supported for dotnet.CSharpParser"}
{"now": "2021/04/26 15:02:58 -0400", "version": "13.0.7", "plugin": "Rider/2019.3.4 Rider-wakatime/12.0.7", "time": 1619463764.476, "caller": "wakatime\\api.py", "lineno": 45, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\Configuration.cs", "level": "DEBUG", "message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"}
{"now": "2021/04/26 15:02:58 -0400", "version": "13.0.7", "plugin": "Rider/2019.3.4 Rider-wakatime/12.0.7", "time": 1619463764.476, "caller": "wakatime\\api.py", "lineno": 51, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\Configuration.cs", "level": "DEBUG", "message": "[{'time': 1619463764.476, 'entity': 'C:/Users/Chris/com.appalachia/unity3d/internal.editor/Assets/wakatime/src/Configuration.cs', 'type': 'file', 'category': None, 'is_write': False, 'project': 'internal.editor', 'branch': 'main', 'language': 'C#', 'dependencies': [], 'lines': 36, 'lineno': None, 'cursorpos': None, 'user_agent': 'wakatime/13.0.7 (Windows-10-10.0.19041-SP0) Python3.8.1.final.0 Rider/2019.3.4 Rider-wakatime/12.0.7'}]"}
{"now": "2021/04/26 15:02:58 -0400", "version": "13.0.7", "plugin": "Rider/2019.3.4 Rider-wakatime/12.0.7", "time": 1619463764.476, "caller": "wakatime\\api.py", "lineno": 302, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\Configuration.cs", "level": "DEBUG", "message": "{'response_code': 202, 'results': [[{'data': {'branch': 'main', 'category': 'coding', 'created_at': '2021-04-26T19:02:55Z', 'cursorpos': None, 'dependencies': [], 'entity': 'C:/Users/Chris/com.appalachia/unity3d/internal.editor/Assets/wakatime/src/Configuration.cs', 'id': 'dbba1e65-5050-46ca-ab62-5ae37001a9cc', 'is_write': False, 'language': 'C#', 'lineno': None, 'lines': 36, 'machine_name_id': None, 'project': 'internal.editor', 'time': 1619463764.476, 'type': 'file', 'user_agent_id': None, 'user_id': 'a4ce18cd-ea1f-4e94-8067-ea0b06779047'}}, 201]]}"}
{"now": "2021/04/26 15:03:00 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\logger.py", "lineno": 62, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "Traceback (most recent call last):\n  File \"C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\stats.py\", line 120, in guess_lexer_using_filename\n    lexer = custom_pygments_guess_lexer_for_filename(file_name, text)\n  File \"C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\stats.py\", line 326, in custom_pygments_guess_lexer_for_filename\n    raise ClassNotFound('no lexer for filename %r found' % fn)\npygments.util.ClassNotFound: no lexer for filename 'SampleScene.unity' found\n"}
{"now": "2021/04/26 15:03:00 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\api.py", "lineno": 56, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"}
{"now": "2021/04/26 15:03:00 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\api.py", "lineno": 62, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "[{'time': 1619464000.0, 'entity': 'C:/Users/Chris/com.appalachia/unity3d/internal.editor/Assets/Scenes/SampleScene.unity', 'type': 'file', 'category': None, 'is_write': True, 'project': 'Internal Editor Packages', 'branch': 'main', 'language': None, 'dependencies': [], 'lines': 267, 'lineno': None, 'cursorpos': None, 'user_agent': 'wakatime/13.1.0 (Windows-10-10.0.19041-SP0) Python3.9.4.final.0 unity-wakatime'}]"}
{"now": "2021/04/26 15:03:00 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\api.py", "lineno": 299, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "{'response_code': 202, 'results': [[{'data': {'branch': 'main', 'category': 'coding', 'created_at': '2021-04-26T19:02:57Z', 'cursorpos': None, 'dependencies': [], 'entity': 'C:/Users/Chris/com.appalachia/unity3d/internal.editor/Assets/Scenes/SampleScene.unity', 'id': 'e43c65b8-2549-401b-9b61-d3dc4dbf0bcf', 'is_write': True, 'language': None, 'lineno': None, 'lines': 267, 'machine_name_id': None, 'project': 'Internal Editor Packages', 'time': 1619464000.0, 'type': 'file', 'user_agent_id': None, 'user_id': 'a4ce18cd-ea1f-4e94-8067-ea0b06779047'}}, 201]]}"}
{"now": "2021/04/26 15:03:01 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\logger.py", "lineno": 62, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "Traceback (most recent call last):\n  File \"C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\stats.py\", line 120, in guess_lexer_using_filename\n    lexer = custom_pygments_guess_lexer_for_filename(file_name, text)\n  File \"C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\stats.py\", line 326, in custom_pygments_guess_lexer_for_filename\n    raise ClassNotFound('no lexer for filename %r found' % fn)\npygments.util.ClassNotFound: no lexer for filename 'SampleScene.unity' found\n"}
{"now": "2021/04/26 15:03:01 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\api.py", "lineno": 56, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"}
{"now": "2021/04/26 15:03:01 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\api.py", "lineno": 62, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "[{'time': 1619464000.0, 'entity': 'C:/Users/Chris/com.appalachia/unity3d/internal.editor/Assets/Scenes/SampleScene.unity', 'type': 'file', 'category': None, 'is_write': True, 'project': 'Internal Editor Packages', 'branch': 'main', 'language': None, 'dependencies': [], 'lines': 267, 'lineno': None, 'cursorpos': None, 'user_agent': 'wakatime/13.1.0 (Windows-10-10.0.19041-SP0) Python3.9.4.final.0 unity-wakatime'}]"}
{"now": "2021/04/26 15:03:02 -0400", "version": "13.1.0", "plugin": "unity-wakatime", "time": 1619464000.0, "caller": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\wakatime\\src\\wakatime~\\wakatime\\api.py", "lineno": 299, "is_write": true, "file": "C:\\Users\\Chris\\com.appalachia\\unity3d\\internal.editor\\Assets\\Scenes\\SampleScene.unity", "level": "DEBUG", "message": "{'response_code': 202, 'results': [[{'data': {'branch': 'main', 'category': 'coding', 'created_at': '2021-04-26T19:02:59Z', 'cursorpos': None, 'dependencies': [], 'entity': 'C:/Users/Chris/com.appalachia/unity3d/internal.editor/Assets/Scenes/SampleScene.unity', 'id': '90b76329-a872-4805-815b-caae9de0bae9', 'is_write': True, 'language': None, 'lineno': None, 'lines': 267, 'machine_name_id': None, 'project': 'Internal Editor Packages', 'time': 1619464000.0, 'type': 'file', 'user_agent_id': None, 'user_id': 'a4ce18cd-ea1f-4e94-8067-ea0b06779047'}}, 201]]}"}

Everything seemed to be great until around 8AM this morning. Since then, despite:

I'm still not seeing any updated data on my dashboard. Any help would be appreciated because I'm stumped! wakatime.logattached.

Activity cuts off this morning: image

I think you can ignore the activity through the night - that was an over-eager callback in Unity3D that I corrected at 7AM. Then there was about an hour of legitimate activity, and then... vanished.

Thanks for taking a look!

ChristopherSchubert commented 3 years ago

I'm not sure how, but tracking did pick up again in the evening: image

None of the tracking events from during the day showed up, but if everything continues to work, I can close this issue. However if you want to investigate and need information I'd be happy to provide it.