-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Cannot Import from https://wakapi.dev/ #610
Comments
Hi @solonovamax, thanks for reporting this. I checked the server logs, here's an excerpt:
Looks like a time zone issue to me (whatelse). You're located in Toronto time zone (UTC-5) and request
I'll fix this (hopefully still today). Actually, while investigating this, I realized the importer is super inefficient, by requesting heartbeats starting at year 1. We could save a couple ten thousand requests by starting in year 2000 or in 2013 rather (which is when the first commit to WakaTime was made). |
Also, until the bug is fixed, you can probably work around it by inserting a heartbeat to your database with a recent date and its Lines 536 to 545 in 7dda996
|
Should work now. I updated wakapi.dev, it should return a safe import range now. Please give it a try (you won't have to recompile your Wakapi). |
rather than hardcoding to not fetch prior to a certain date, it might be a good idea to have some way to query "what is the oldest hearbeat you have" and then use that |
That's what's already being done. The hard-coded date is only used if no heartbeats exist or if something goes wrong. |
ah, I see |
Describe the bug
I'm attempting to import the data from https://wakapi.dev/ to my own self-hosted instance, and for some reason it keeps failing.
I configured wakapi to import from
https://wakapi.dev/api/compat/wakatime/v1
, with my wakapi token, (tested both the normal importer & legacy importer) andIn the logs, it says the following:
I'm not sure why it keeps failing.
I can send my
config.yml
if needed.To re-attempt the imports, I'm connecting to my database and running
to remove the key that says when I last imported.
System information
Please provide information on:
The text was updated successfully, but these errors were encountered: