Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Github action workflow fails with 422 error #7651

Open
2 tasks done
pasandevinins opened this issue Apr 2, 2025 · 0 comments
Open
2 tasks done

[Bug]: Github action workflow fails with 422 error #7651

pasandevinins opened this issue Apr 2, 2025 · 0 comments
Labels
bug Something isn't working resolver Related to OpenHands Resolver

Comments

@pasandevinins
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

I used https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/resolver/examples/openhands-resolver.yml in my repositories and everytime the workflow triggers it gives following error

`ERROR:root: File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 690, in
main()
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 673, in main
process_single_issue(
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 506, in process_single_issue
send_pull_request(
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 336, in send_pull_request
pr_data = handler.create_pull_request(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/openhands/resolver/interfaces/issue_definitions.py", line 314, in create_pull_request
return self._strategy.create_pull_request(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/openhands/resolver/interfaces/github.py", line 244, in create_pull_request
response.raise_for_status()
File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)

ERROR:root:<class 'requests.exceptions.HTTPError'>: 422 Client Error: Unprocessable Entity for url: https://api.github.com/repos/***/openhands-rnd/pulls`

OpenHands Installation

Docker command in README

OpenHands Version

No response

Operating System

Linux

Logs, Errors, Screenshots, and Additional Context

No response

OpenHands Installation

GitHub resolver

OpenHands Version

No response

Operating System

MacOS

Logs, Errors, Screenshots, and Additional Context

No response

@pasandevinins pasandevinins added the bug Something isn't working label Apr 2, 2025
@mamoodi mamoodi added the resolver Related to OpenHands Resolver label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolver Related to OpenHands Resolver
Projects
None yet
Development

No branches or pull requests

2 participants