question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnprocessableEntity from 'POST https://api.github.com/repos/myorganization/myproject/actions-runners/registration'

See original GitHub issue

Describe the bug

  1. Run Create registration token method of github API
  2. Pass token from the response to config.sh
  3. Runner authentication fails with message
Http response code: UnprocessableEntity from 'POST https://api.github.com/repos/myorganization/myproject/actions-runners/registration'
{"message":"Validation Failed","documentation_url":"https://developer.github.com/v3"}
Response status code does not indicate success: 422 (Unprocessable Entity).
An error occurred: Not configured

This error does not reproduce if I push the button Add runner from project settings before any API calls. After pushing this button runner authentication works pretty well event with tokens generated with API. For me it looks like this button also changes some flag in project settings.

To Reproduce Steps to reproduce the behavior:

  1. Create a new repo
  2. Call the rest api to create a registration token for a new runner
  3. Use that token with config.sh in to setup and run a new runner in the recently created repo.
  4. The error will be given.

Expected behavior I would expect to be able to do the above steps without having to manually go into the interface first and click the “Add Runner” button in the repo settings.

Runner Version and Platform

Any version

OS of the machine running the runner? OSX/Windows/Linux/… Any OS

Here is a thread in the community with the exact same issue: https://github.community/t5/GitHub-Actions/Self-hosted-runners-API-Unprocessable-Entity/td-p/47098

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timharris777commented, May 19, 2020

@tpinniger, adding you to this issue as you will be interested when it’s fixed.

0reactions
joshmgrosscommented, Jul 27, 2020

👋 This issue should now be fixed. Runner registration should now work correctly for new repositories that have not used Actions yet or created any workflows.

Thank you for finding this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected error response from GitHub API 422 when ...
When posting an issue to GitHub API V3 I am getting an unexpected response. Namely 422 Unprocessable Entity. However the detail of the...
Read more >
422 Unprocessable Content - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 422 Unprocessable Content response status code indicates that the ... View the source on GitHub.
Read more >
API Error 422: Unprocessable Entity
An HTTP 422: Unprocessable Entity error occurs when a request to the API can not be processed.
Read more >
422 Error when making POST Request to Favorite Courses API
I can get the list of a user's favorites without any issues, but I am getting a 422 "unprocessable entity" response when I...
Read more >
Http response code: NotFound from 'POST https://api.github.com
Http response code: NotFound from ' POST https://api. github.com/actions/runner-registration' {"message":"Not Found" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found