GitHUB Trigger - Response 403

Describe the problem/error/question

Hi,

I’m trying to use use GitHUB-Trigger-Node to collect Push-Events. I’ve created on my GitHUB-account a personal access token (activated scopes: repo, user, project) as well as a fine-grained token (User permissions: Read access to user events; Repository permissions: This token does not have any repository permissions).

The webhook-URL on n8n-side is equal to the payload-URL on GitHUB (Repo-Settings: Content-type: application/json; SSL varification: enabled)

What is the error message (if any)?

Test-executions are throwing Response Error 403.

Please share your workflow

Share the output returned by the last node

The outpst of “Get Profile” is ok when triggered manually

Information on your n8n setup

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

Hey @wupperpi hope all is good.

The 403 comes from n8n, as github is trying to send a test a connection. Did you run or activated your workflow while this “delivery” took place?

Hi, thanks for picking up the thread.

No, the issue rises as soon as I klick “Execute step” in test mode. Webhook on n8n and GitHub is equal.

If I activate production mode, the same issue. Webhook on n8n and GitHUB is qual too (the string now of course without “test”).

I’m using an ngrok tunnel.

When you click “Execute”, do you get any errors in n8n?

No, but if I use fine-grained Token, I get by executing a test “Cannot read properties of undefined (reading ‘httpCode’)”.

I tested a simple webhook-trigger flow. A request using the “ngrok-url” failes.

May be the reason is ngrok. The log lists a lot of ngrok Errors 727. Thie means that the ngrok account has reached its HTTP requests limit for the month.

I’m surprised, for I startet working yesterday after the holidays.

I know there were some issues a few versions back with github trigger. Any change you could update your n8n to the latest stable?

If you search the forum with

Cannot read properties of undefined (reading ‘httpCode’) github

you will see similar issues mentioned by other people.

The reason of the huge amount of http-requests seams to be n8n (https://….ngrok-free.app/rest/telemetry/proxy/v1/track).

Set N8N_DIAGNOSTICS_ENABLED=false => no more ngrok Errors 727.

I’ll check out GitHUB Trigger next mounth with fresh amount of free HTTP requests.

Up to now many thanks for the leading hint

2 Likes

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