I’ve been testing the Clockify trigger but I can’t get it to work unfortunately.
When adding a polling time, doesn’t matter if it’s days, minutes or hours, I am getting the following error:
ERROR: Clockify Error: [undefined] getTimeEntries.end: You entered invalid value for field : [end]. Values that represent [end] can be null and can be empty. .Please make sure that the [end] date is not greater than 9999-12-31 and not less than 0001-01-01. Ensure that the [end] date is in following format: "yyyy-MM-ddThh:mm:ssZ" Example: 2018-11-29T13:00:46Z.
Error: Clockify Error: [undefined] getTimeEntries.end: You entered invalid value for field : [end]. Values that represent [end] can be null and can be empty. .Please make sure that the [end] date is not greater than 9999-12-31 and not less than 0001-01-01. Ensure that the [end] date is in following format: "yyyy-MM-ddThh:mm:ssZ" Example: 2018-11-29T13:00:46Z.
at Object.clockifyApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Clockify/GenericFunctions.js:28:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Also when removing the polling interval from n8n I am getting the following error:
ERROR: Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:371:79
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Strange thing is when I re-add the polling time it works and I can see my Clockify times but when I click save I am getting the error above so I cannot use it. Anyone knows how to fix this?
I tried to debug it now but sadly do not understand what is going on. Sometimes it works perfectly for me other times not. For me it does however not look like an error in n8n more like that Clockify does something strange. Here an exmple:
getTimeEntries.end: You entered invalid value for field : [end]. Values that represent [end] can be null and can be empty. .Please make sure that the [end] date is not greater than 9999-12-31 and not less than 0001-01-01. Ensure that the [end] date is in following format: "yyyy-MM-ddThh:mm:ssZ" Example: 2018-11-29T13:00:46Z.
This request a few minutes later then works totally fine?!?!?
that’s exactly the problem, sometimes it works fine other times I’m getting all kinds of errors from Clockify. indeed a Clockify error rather than a n8n error. Thanks for clarifying!
as you can see there the SS was being used to represent seconds but it is actually used for fractional seconds. Fractional second range from 0 to 99 meaning every time the fractional seconds were below 59 it worked and above that it failed because it’s not a valid value for the API.
I just changed the SS to ss and now it always returns seconds.
@RicardoE105 hmm, I’ve just noticed that everytime I execute the Clockify trigger manually, the results are empty, even though I added some records in Clockify. When setting the polling mode to for example every minute it doesn’t do anything and won’t log anything in the Executions tab. Do you have the same behaviour?
@patrick Sorry to resurrect an old thread, but we (Dominion Solutions) submitted a fix for that on Wednesday. It looks like it got integrated into version 0.81.0.