Hi There I try to connect to Clockify with the HTTP Node. We need to fetch the endpoint TimeRecord per User. So I firstly fetch with the Clockify Node User and Workspace ID
After that I try to GET https://developer.clockify.me/api/v1/workspaces/{{ $json[“activeWorkspace”] }}/user/{{ $json[“id”] }}/time-entries
The Authenthication I tried is
After executing I receive the error:
ERROR: Authorization failed - please check your credentials
{“status”:“rejected”,“reason”:{“message”:“401 - "{\"message\":\"Api key does not exist\",\"code\":4003}"”,“name”:“Error”,“stack”:“Error: 401 - "{\"message\":\"Api key does not exist\",\"code\":4003}"\n at createError (/app/code/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/app/code/node_modules/axios/lib/core/settle.js:17:12)\n at RedirectableRequest.handleResponse (/app/code/node_modules/axios/lib/adapters/http.js:238:9)\n at RedirectableRequest.emit (node:events:525:35)\n at RedirectableRequest.emit (node:domain:489:12)\n at RedirectableRequest._processResponse (/app/code/node_modules/follow-redirects/index.js:356:10)\n at ClientRequest.RedirectableRequest._onNativeResponse (/app/code/node_modules/follow-redirects/index.js:62:10)\n at Object.onceWrapper (node:events:628:26)\n at ClientRequest.emit (node:events:513:28)\n at ClientRequest.emit (node:domain:489:12)”}}
It tells me api key does not exist. But I have checked it 100 Times. It is the api Token generated in my clockify profile.
I also tried to use the predefined credentials from clockify for auth. I got the same error.
But when I try to use the same authorization with a clockify node it works without problems