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

Unable to sync from toggle to clockify #46

Closed
sjohn92 opened this issue Dec 1, 2021 · 7 comments
Closed

Unable to sync from toggle to clockify #46

sjohn92 opened this issue Dec 1, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@sjohn92
Copy link

sjohn92 commented Dec 1, 2021

Unable to sync from toggle to clockify. It fetches from toggl, but gives and error from clockify immediately after start.

@mikerourke
Copy link
Owner

@sjohn92 It looks like Clockify made some changes to their API (I can’t delete a project now until I archive it first). I’ll do some digging over the next couple of days and fix the breaking changes. I’ll ping you when the fixes are deployed. Sorry about that!

@mikerourke
Copy link
Owner

Hey @sjohn92, quick update: last week/weekend was kind of bananas so I didn't get a chance to look into this issue. I'm going to try knocking it out this week. I apologize for the delay.

@mikerourke mikerourke added the bug Something isn't working label Dec 8, 2021
@mikerourke mikerourke self-assigned this Dec 8, 2021
@mikerourke mikerourke added this to In Progress in Tasks and Issues Dec 8, 2021
@mikerourke
Copy link
Owner

@sjohn92 I just fixed the issue with being unable to delete a Clockify project, but I didn't run into any other errors. I just upgraded the dependencies and released a new version. Before any release, I transfer data between test accounts to verify that everything is working correctly. Here's the full process:

  1. Transfer a bunch of data from a test Toggl account to a test Clockify account
  2. Delete all the data from the Toggl account
  3. Transfer all the data from the Clockify account back to Toggl
  4. Delete all the data from the Clockify account

By "delete all the data", I mean "delete everything but the workspaces". So there are a few questions I have regarding the errors you're getting:

  1. Are you transferring tasks? I'm not able to test task transfer because it's a paid feature on Toggl.
  2. Are you the only user on your account, or is it an organization/company account?
  3. If it is an org/company account, are you trying to transfer data associated with a different user?
  4. Are you trying to transfer a lot of data (e.g. > 1,000 time entries)?

Most of the issues that get submitted are related to multi-user transfer. I've been meaning to add support for that feature since I released this tool (~3 years ago). However, it's a pretty massive undertaking and I don't have the bandwidth :(.

Anyway, let me know if the answer to any of those 4 questions is "yes" so I can try to narrow down the issue.

@sjohn92
Copy link
Author

sjohn92 commented Dec 12, 2021

Hello Mike,
Thanks a lot for checking this. I'm using a personal account and trying to transfer time entries from toggl to clockify which used to work before without any issues. Please find below my answers for your queries.

  1. Are you transferring tasks? I'm not able to test task transfer because it's a paid feature on Toggl.
    No, I'm transferring only time entries
  2. Are you the only user on your account, or is it an organization/company account?
    Yes its a personal account in toggl free version
  3. If it is an org/company account, are you trying to transfer data associated with a different user?
    NA
  4. Are you trying to transfer a lot of data (e.g. > 1,000 time entries)?
    I see it has about 587 time entries.
    image
    When I try to transfer, it immediately gives me an error as below
    image

@mikerourke
Copy link
Owner

@sjohn92 I'm guessing there's an issue with the data, which is a little harder to troubleshoot without being able to see it. Just to give you some insights on how the tool works, it:

  1. Pulls all of the projects, tags, clients, time entries, etc. from Toggl
  2. Pulls all of the same entities from Clockify
  3. Converts the data from both sources into records with the same field names (i.e. a Toggl time entry might have a project_id, while Clockify has a projectId), so I create a Project record with a projectId field and which tool that record is associated with
  4. Tries to associate the IDs of the entities from Toggl with the entities from Clockify (if a project named "Some Project" exists on Toggl and Clockify, it includes that projectId in the payload for a time entry being transferred)

Some of the issues that users have encountered in the past are caused by a disparity between the source data and target data, which is why I added functionality to delete all the data from either tool and try again. If you were able to transfer everything but the time entries, I might be able to spot the issue in the network request that's returning the 400 error. If you haven't spent too much time making changes on the Clockify account, could you try deleting everything from Clockify and trying the transfer again?

If it still fails, could you send me the payload from the failing network request? If you need help getting that data, I can write up a quick instruction guide for you.

@sjohn92
Copy link
Author

sjohn92 commented Dec 13, 2021

Hi Mike,
I deleted all entries from clockify and tried to transfer again and I'm still getting the same error. I was able to delete all entries from Clockify though. I'm using free version of both Toggl and Clockify, I'm not sure if it's a new change from Clockify, I saw something like this at https://clockify.me/toggl-importer that for importing time entries, you may need a paid subscription. I was unable to import manually from Clockify also.
image

@mikerourke
Copy link
Owner

@sjohn92 Are you only transferring time entries, or are you also transferring projects?

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
Tasks and Issues
  
In Progress
Development

No branches or pull requests

2 participants