Clickup authorisation error code

I keep getting the below error message in my automations that I have setup for clickup. I have a number of these sort of automations that run on a live basis and every few days one of them seems to fail and I need to manually go in and restart it. Anyone know what I could do to resolve/reduce the issue?

Error message: [401] OAUTH_023: Team(s) not authorized

Hi @Jonathan_Adeleye,

You’ll see “Team Not Authorized” when the connection you’ve set up doesn’t have permission to access a particular task, list, folder, or other item. Happens if you try to access a private space or an item that is in a space you don’t have access to.

Cheers,
Henk

Thanks for the response Henk, however, in these scenarios, I have admin access to I have access to the lists, folders, spaces that I am trying to access, yet I still keep getting that error message.

Doesn’t matter, only the account that owns a private list can access it, anyone else will get [401] OAUTH_023: Team(s) not authorized.

That is if the thing is even in the same workspace as the account used to make the connection.

Can you share some screenshots of some of the errors to see what is going on? What is the call trying to do when its failing?

It’s happening for lists that aren’t even private though. It always fails on the get task module.

Did you connect with the API token or through an App that you created?

Can you Make an API call to https://api.clickup.com/api/v2/team to view the workspaces available to you? Is the item, or task, included in this workspace?

If the above doesn’t help to find the cause, can you drill down to the task with the following endpoints to see where you hit the blockage?

  1. GET https://api.clickup.com/api/v2/team/{workspace_id}/space
  2. GET https://api.clickup.com/api/v2/space/{space_id}/folder (or skip if the list is not in a folder)
  3. GET https://api.clickup.com/api/v2/folder/{folder_id}/list OR if the list is folderless: https://api.clickup.com/api/v2/space/{space_id}/list
  4. GET https://api.clickup.com/api/v2/list/{list_id}/task
  5. GET https://api.clickup.com/api/v2/task/{task_id}

Please also doublecheck the connection and authenticated user.

Cheers,
Henk

What are you mapping inside that module?