-
Notifications
You must be signed in to change notification settings - Fork 5
UnhandledPromiseRejectionWarning messages #12
Comments
@MarcWithercy Which version of Node are you using to perform the transfer? |
You need to be on Node.js version 10.3 or greater. Older versions don't support async iteration. I'll add to the README and package.json files to prevent this going forward. |
FYI @MarcWithercy I added a check to ensure you're using the correct Node version. It's more of a band-aid for now (I could use a library or polyfill to limit the restriction). If you upgrade your version of Node.js, it should work fine. I recommend a tool like nvm. |
Hi,
I do apologise for the late response.
I'm currently running version 8.10.0~dfsg-2ubuntu0.4.
Kind regards,
Marc
…________________________________
From: Mike Rourke <notifications@github.com>
Sent: 04 December 2018 20:44
To: mikerourke/toggl-to-clockify
Cc: MarcWithercy; Mention
Subject: Re: [mikerourke/toggl-to-clockify] UnhandledPromiseRejectionWarning messages (#12)
FYI @MarcWithercy<https://github.com/MarcWithercy> I added a check to ensure you're using the correct Node version. It's more of a band-aid for now (I could use a library or polyfill to limit the restriction). If you upgrade your version of Node.js, it should work fine. I recommend a tool like nvm<https://github.com/creationix/nvm>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#12 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ArfVY7Q5qy7st7rZcssrKreuNsjtxLIcks5u1t6egaJpZM4ZA_b6>.
|
I'm still getting...
Fetching workspaces from Toggl...
(node:17193) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at https://www.toggl.com/api/v8/workspaces reason: Unexpected end of JSON input
at /usr/local/lib/node_modules/toggl-to-clockify/node_modules/node-fetch/lib/index.js:241:32
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:17193) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:17193) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
…________________________________
From: Marc Gilliatt <m.gilliatt@live.co.uk>
Sent: 05 December 2018 15:45
To: mikerourke/toggl-to-clockify
Subject: Re: [mikerourke/toggl-to-clockify] UnhandledPromiseRejectionWarning messages (#12)
Hi,
I do apologise for the late response.
I'm currently running version 8.10.0~dfsg-2ubuntu0.4.
Kind regards,
Marc
________________________________
From: Mike Rourke <notifications@github.com>
Sent: 04 December 2018 20:44
To: mikerourke/toggl-to-clockify
Cc: MarcWithercy; Mention
Subject: Re: [mikerourke/toggl-to-clockify] UnhandledPromiseRejectionWarning messages (#12)
FYI @MarcWithercy<https://github.com/MarcWithercy> I added a check to ensure you're using the correct Node version. It's more of a band-aid for now (I could use a library or polyfill to limit the restriction). If you upgrade your version of Node.js, it should work fine. I recommend a tool like nvm<https://github.com/creationix/nvm>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#12 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ArfVY7Q5qy7st7rZcssrKreuNsjtxLIcks5u1t6egaJpZM4ZA_b6>.
|
I think I've seen this issue before. I want to say the issue was that the workspace name in the config file didn't match the one on Toggl (but I could be wrong). Unfortunately, the error handling isn't very robust right now, but I'm working on a significant update that transfers more entities and fixes some of the issues. I'm still hashing out the functionality though. Just out of curiosity, are you transferring data for multiple users, or just you? If you're trying to do a multi-user load, it won't work (that's the update I'm currently working on per #7). If that's the case, I can ping you when I publish the new version. My goal is to have the update out by December 21st. It's a significant effort and I'm a little strapped for time at the moment. |
I appreciate the quick response.
The transfer is just for me, I'm just doing some testing at the moment. I would like to use your tool to transfer the whole companies data to Clockify. I do also appreciate its a lot effort and you're a little strapped. I'm just grateful a tool like yours exists in the first place and look forward to the updates you do to it.
…________________________________
From: Mike Rourke <notifications@github.com>
Sent: 05 December 2018 16:01
To: mikerourke/toggl-to-clockify
Cc: MarcWithercy; Mention
Subject: Re: [mikerourke/toggl-to-clockify] UnhandledPromiseRejectionWarning messages (#12)
I think I've seen this issue before. I want to say the issue was that the workspace name in the config file didn't match the one on Toggl (but I could be wrong). Unfortunately, the error handling isn't very robust right now, but I'm working on a significant update that transfers more entities and fixes some of the issues. I'm still hashing out the functionality though.
Just out of curiosity, are you transferring data for multiple users, or just you? If you're trying to do a multi-user load, it won't work (that's the update I'm currently working on per #7<#7>). If that's the case, I can ping you when I publish the new version. My goal is to have the update out by December 21st. It's a significant effort and I'm a little strapped for time at the moment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#12 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ArfVY230TVmkgnhepsetmF8DDbrXpPQcks5u1-3DgaJpZM4ZA_b6>.
|
Thank you, that's very kind of you to say. I honestly did not expect this library to be so popular, I originally just cobbled it together as a one-off to transfer my Toggl data. The multi-user aspect of it adds an additional layer of complexity, plus having to accommodate for changes in two different APIs. I'll be sure to inform you as soon as the update is ready. |
I get a similar (albeit not the same) error message: Transferring clients to Clockify in Heater...
(node:16808) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'filter' of null
at Clockify.<anonymous> (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:300:63)
at step (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:43:23)
at Object.next (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:24:53)
at C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:18:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:14:12)
at Clockify.transferEntitiesFromToggl (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:293:16)
at Clockify.<anonymous> (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:407:41)
at step (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:43:23)
at Object.next (C:\Users\spiros\AppData\Roaming\npm\node_modules\toggl-to-clockify\lib\tools\Clockify.js:24:53)
(node:16808) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:16808) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. I am not sure if this is the same case as above. Should I file a new bug for this? |
@sVathis Please file a new issue, I think this is an unrelated error and a relatively simple fix. |
@MarcWithercy I know it's been awhile, but I'm planning on publishing a web-based version of the tool next week without all the annoying bugs. Would you like me to send you a link when it's ready? |
Hi, Im trying to migrate my companies data/hours etc from Toggl to Clockify. Ive followed the instructions you provided but I get the following...
Fetching workspaces from Toggl...
(node:14678) UnhandledPromiseRejectionWarning: TypeError: Symbol.asyncIterator is not defined.
at __asyncGenerator (/usr/local/lib/node_modules/toggl-to-clockify/lib/tools/Toggl.js:50:38)
at Toggl.getWorkspaceDetailsIteratable (/usr/local/lib/node_modules/toggl-to-clockify/lib/tools/Toggl.js:387:16)
at Toggl. (/usr/local/lib/node_modules/toggl-to-clockify/lib/tools/Toggl.js:463:49)
at step (/usr/local/lib/node_modules/toggl-to-clockify/lib/tools/Toggl.js:43:23)
at Object.next (/usr/local/lib/node_modules/toggl-to-clockify/lib/tools/Toggl.js:24:53)
at fulfilled (/usr/local/lib/node_modules/toggl-to-clockify/lib/tools/Toggl.js:15:58)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:14678) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:14678) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Any ideas, please?
The text was updated successfully, but these errors were encountered: