You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action was previously working for us but started failing randomly since about 3 weeks ago. I tried looking at its code but couldn't find anything to suggest what the cause might be. There is this issue in another project that experiences the same error but I didn't take time yet to dig deeper: semantic-release/github#746. Hopefully that provides enough hints.
Sample error:
Run benc-uk/[email protected]
with:
repo: XXXXXXXXX/yyyyyyyyyyy
workflow: zzzzzzzzz.yml
ref: main
token: ***
🏃 Workflow Dispatch Action v1.2.1
🔎 Found workflow, id: 58803020, name: XXXXXXXXXX path: .github/workflows/yyyyyyyy.yml
🚀 Calling GitHub API to dispatch workflow...
Error: Request body length does not match content-length header
The text was updated successfully, but these errors were encountered:
Hey! I was also experiencing this since a recent version (I think the update that added node 20 support), up to the current version too (1.2.4)
For me, our organization name on GH had changed. What Github then does is it keeps redirecting the old name to the new name, but I guess the API gets confused since the name length changes, and the action fails as a result.
Solution
For me, the solution was to use the new (current) name of the organization/account where the workflow repo is located
Then, our organization GH account changed from longer-company-name to comp-name (i.e. the length of the organization name changed, I suspect this might be key), and the above error occured. To fix it, I had to use our new company name in the workflow:
If I just browse to github.com/longer-company-name/repo-name GH automatically redirects me to github.com/comp-name/repo-name, but I guess the action/API does not do this everywhere.
If it's fixable within this action, even better, but you should honestly just keep the organization/account names up-to-date anyways 😅 I suspect this may also be why the issue occurs for other people :)
This action was previously working for us but started failing randomly since about 3 weeks ago. I tried looking at its code but couldn't find anything to suggest what the cause might be. There is this issue in another project that experiences the same error but I didn't take time yet to dig deeper: semantic-release/github#746. Hopefully that provides enough hints.
Sample error:
The text was updated successfully, but these errors were encountered: