Cookies must be enabled to use GitHub

Describe the problem/error/question

I want to backup workflows to git, i have this error when he try to create a file or folder.

What is the error message (if any)?

ERROR: Forbidden - perhaps check your credentials?

403 - “Cookies must be enabled to use GitHub.” - Cookies must be enabled to use GitHub.

Please share your workflow

Share the output returned by the last node

ERROR: Forbidden - perhaps check your credentials?

403 - “Cookies must be enabled to use GitHub.” - Cookies must be enabled to use GitHub.

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Seif,

That is a bit odd, What version of n8n are you running and how do you have it deployed?

Are you using OAuth or an access token and is the token scoped at all?

Hi @Jon
I use access token and version of n8n = 1.2.1

Hey @Seif,

I have just given it a quick go and it seems to be working for me, Which of the GitHub nodes is showing that error?

Hi @Jon,
GitHub Create node showing that error.

Hey @Seif,

I am not sure what is going on there but I do have a crazy thought… In the GitHub credential did you change the Server URL from https://api.github.com to something else? If you are not using the enteprise version of Github try setting the server back to the default value and see if that works.

Hi @Jon
the server url : https://github.com/

Hey @Seif,

That will be it, The default should be https://api.github.com can you set it to this and let me know how you get on.

Hi @Jon
I changed it but i have this error: ERROR: The resource you are requesting could not be found
404 - {“message”:“Not Found”,“documentation_url”:“GitHub REST API documentation - GitHub Docs”} - Not Found

Hey @Seif,

That is a bit better it looks like it using the API now, Have you created the repository that it will be using for the workflows?

Hi @Jon
Yes, I created the repository

@Seif does the values in the node look right for your repository?

@Jon yes the value of Repository Name is right.

Hey @Seif,

Are all of the values correct? For some reason GitHub is saying that something is wrong so it will be a case of checking the data against what you have inputted. Could be worth checking the owner of the repo is correct, Does your API token also have access to github.com/wemiam-git/n8n?

Hi @Jon,
The error “The resource you are requesting could not be found” is from first node github

Hey @Seif,

When you say first one is that the node just called GitHub? If that is showing the error then there are only a few things it can be.

  1. Your Repository Owner setting is not correct
  2. The Repository Name is not correct
  3. The user the access token was created for doesn’t have access to the repository
  4. The access token does not have access to the repository (you can select which repos a token can access)

As an example if I set mine to use wemiam-git as the owner and n8n as the repo because I don’t have access to it as my user I get the below message in the first node.

In the File Create node I will also see the below message:

If the above 2 images look like what you are seeing it will be one of the things in the list.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.