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

Issue importing data from Wakatime #85

Open
modem7 opened this issue Aug 31, 2023 · 3 comments
Open

Issue importing data from Wakatime #85

modem7 opened this issue Aug 31, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@modem7
Copy link

modem7 commented Aug 31, 2023

Getting this in the logs:

31/08/2023 1:07:23
ts=2023-08-31T00:07:23.805655711Z level=Info host=14f27e1ca239 msg=importing 77 heartbeats for day 2022-01-31 00:00:00 UTC 
31/08/2023 1:07:23
ts=2023-08-31T00:07:23.811234006Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:07:23
ts=2023-08-31T00:07:23.811234006Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:09:05
ts=2023-08-31T00:09:05.237221104Z level=Warning host=14f27e1ca239 msg=Failed to identify a user with the given token 
31/08/2023 1:09:05
ts=2023-08-31T00:09:05.237221104Z level=Warning host=14f27e1ca239 msg=Failed to identify a user with the given token 
31/08/2023 1:09:31
ts=2023-08-31T00:09:31.932038851Z level=Info host=14f27e1ca239 msg=received an import request from user "modem7" 
31/08/2023 1:09:31
ts=2023-08-31T00:09:31.94446407Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:09:33
ts=2023-08-31T00:09:33.680829778Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:09:33
ts=2023-08-31T00:09:33.686152826Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:09:33
ts=2023-08-31T00:09:33.686152826Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:09:35
ts=2023-08-31T00:09:35.69752803Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:09:36
ts=2023-08-31T00:09:36.434877088Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:09:36
ts=2023-08-31T00:09:36.446137585Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:09:36
ts=2023-08-31T00:09:36.446137585Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:09:38
ts=2023-08-31T00:09:38.454981863Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:09:39
ts=2023-08-31T00:09:39.113185826Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:09:39
ts=2023-08-31T00:09:39.125903544Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:09:39
ts=2023-08-31T00:09:39.125903544Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.134660404Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.796713249Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.807771734Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.807771734Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:09:42
ts=2023-08-31T00:09:42.83975589Z level=Info host=14f27e1ca239 msg=checking pending import request for user "modem7" 
31/08/2023 1:09:42
ts=2023-08-31T00:09:42.83975589Z level=Info host=14f27e1ca239 msg=import request for user "modem7": JobFailed 
31/08/2023 1:10:24
ts=2023-08-31T00:10:24.720932214Z level=Info host=14f27e1ca239 msg=received an import request from user "modem7" 
31/08/2023 1:10:24
ts=2023-08-31T00:10:24.734274269Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:10:26
ts=2023-08-31T00:10:26.325750599Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:10:26
ts=2023-08-31T00:10:26.34756054Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:10:26
ts=2023-08-31T00:10:26.34756054Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.358417376Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.984963502Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.997164398Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.997164398Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.010071046Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.665848418Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.676035907Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.676035907Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:10:33
ts=2023-08-31T00:10:33.686148133Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7" 
31/08/2023 1:10:34
ts=2023-08-31T00:10:34.837416853Z level=Info host=14f27e1ca239 msg=checking pending import request for user "modem7" 
31/08/2023 1:10:34
ts=2023-08-31T00:10:34.837416853Z level=Info host=14f27e1ca239 msg=import request for user "modem7": JobPending 
31/08/2023 1:10:35
ts=2023-08-31T00:10:35.0394501Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC 
31/08/2023 1:10:35
ts=2023-08-31T00:10:35.045066132Z level=Error host=14f27e1ca239 msg=failed to execute import request 
31/08/2023 1:10:35
ts=2023-08-31T00:10:35.045066132Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list 
31/08/2023 1:10:44
ts=2023-08-31T00:10:44.834957675Z level=Info host=14f27e1ca239 msg=checking pending import request for user "modem7" 
31/08/2023 1:10:44
ts=2023-08-31T00:10:44.834957675Z level=Info host=14f27e1ca239 msg=import request for user "modem7": JobFailed 

Tried the Wakatime API key with both waka_ and without.

@mujx mujx added the bug Something isn't working label Sep 20, 2023
@mujx
Copy link
Owner

mujx commented Sep 20, 2023

Did any of the heartbeats were imported or nothing at all?

@modem7
Copy link
Author

modem7 commented Sep 20, 2023

Nothing at all it seems

@modem7
Copy link
Author

modem7 commented Feb 22, 2024

I tried this again, and got the following:

No data imported.

HAKA_DB_HOST: haka_db
HAKA_DB_PORT: 5432
HAKA_DB_USER: test
HAKA_DB_NAME: test
Waiting for the PostgreSQL service to become available ...
Connected to PostgreSQL
Database test already exists
NOTICE:  relation "schema_migrations" already exists, skipping
Running migrations from files found in /app/migrations
Initializing schema
Migrations schema initialized
Ok:	00001-add-tags.sql
Ok:	00002-add-token-name.sql
Migrations applied succesfully
Starting hakatime server ...
ts=2024-02-22T19:13:41.676251107Z level=Warning host=96bea23e9d2d msg=Missing refresh_token cookie from auth call 
ts=2024-02-22T19:15:03.550137298Z level=Info host=96bea23e9d2d msg=registering user "modem7" 
ts=2024-02-22T19:15:18.044910961Z level=Warning host=96bea23e9d2d msg=User modem7 doesn't have a project named null 
ts=2024-02-22T19:18:39.731039792Z level=Info host=96bea23e9d2d msg=received an import request from user "modem7" 
ts=2024-02-22T19:18:39.742987043Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:18:41.964719789Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:18:41.964719789Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:18:43.977129366Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:18:44.66851633Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:18:44.66851633Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:18:46.681602637Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:18:47.500495445Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:18:47.500495445Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:18:49.513019891Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:18:50.560963387Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:18:50.560963387Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:18:50.696145225Z level=Info host=96bea23e9d2d msg=checking pending import request for user "modem7" 
ts=2024-02-22T19:18:50.697499904Z level=Info host=96bea23e9d2d msg=import request for user "modem7": JobFailed 
ts=2024-02-22T19:21:33.101602582Z level=Info host=96bea23e9d2d msg=received an import request from user "modem7" 
ts=2024-02-22T19:21:33.114976917Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:21:34.598362456Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:21:34.598362456Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:21:36.613195357Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:21:37.374680218Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:21:37.374680218Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:21:39.390292516Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:21:40.444587289Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:21:40.444587289Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:21:42.459490981Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7" 
ts=2024-02-22T19:21:43.142223268Z level=Info host=96bea23e9d2d msg=checking pending import request for user "modem7" 
ts=2024-02-22T19:21:43.142223268Z level=Info host=96bea23e9d2d msg=import request for user "modem7": JobPending 
ts=2024-02-22T19:21:43.162078341Z level=Error host=96bea23e9d2d msg=failed to execute import request 
ts=2024-02-22T19:21:43.162078341Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number" 
ts=2024-02-22T19:21:53.145260409Z level=Info host=96bea23e9d2d msg=checking pending import request for user "modem7" 
ts=2024-02-22T19:21:53.146587767Z level=Info host=96bea23e9d2d msg=import request for user "modem7": JobFailed 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants