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]: While running remote runtime evaluation, I encountered a '413 Client Error: Request Entity Too Large for URL' error. #4042

Closed
2 tasks done
aglassoforange opened this issue Sep 25, 2024 · 5 comments
Labels
bug Something isn't working severity:low Minor issues or affecting single user Stale Inactive for 30 days

Comments

@aglassoforange
Copy link

Is there an existing issue for the same bug?

Describe the bug

I used this command to run remote Eval:

ALLHANDS_API_KEY="YOUR-API-KEY" RUNTIME=remote EVAL_DOCKER_IMAGE_PREFIX="us-docker.pkg.dev/evaluation-428620/swe-bench-images" evaluation/swe_bench/scripts/eval_infer_remote.sh evaluation/outputs/swe_bench_lite/CodeActAgent/Llama-3.1-70B-Instruct-Turbo_maxiter_30_N_v1.9-no-hint/output.jsonl 16 "princeton-nlp/SWE-bench_Lite" "test"

During this process there are multiple instances failed to be evaluated. Below is the instances that encountered this issue.
[sphinx-doc__sphinx-11445, sphinx-doc__sphinx-8474, sphinx-doc__sphinx-7686, sphinx-doc__sphinx-7686]

�
[92m20:37:32 - openhands:INFO�[0m: shared.py:378 - Starting evaluation for instance sphinx-doc__sphinx-11445.
Hint: run "tail -f /Users/y/Documents/project/OpenHands/evaluation/evaluation_outputs/outputs/swe-bench-lite/CodeActAgent/o1-mini_maxiter_30_N_v1.9-no-hint/output.logs/instance_sphinx-doc__sphinx-11445.log" to see live logs in a separate shell
----------
Error in instance [pytest-dev__pytest-5692]: Copy operation failed: 413 Client Error: Request Entity Too Large for url: https://6fc2518e-3ac5-4bfc-acdc-72ef90de1a87.runtime.all-hands.dev/upload_file?destination=%2Ftmp&recursive=false. Stacktrace:
Traceback (most recent call last):
  File "/Users/y/Documents/project/OpenHands/openhands/runtime/remote/runtime.py", line 326, in copy_to
    response = send_request(
               ^^^^^^^^^^^^^
  File "/Users/y/Documents/project/OpenHands/openhands/runtime/utils/request.py", line 62, in send_request
    return _send_request_with_retry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/y/Library/Caches/pypoetry/virtualenvs/openhands-ai-AWLCSgR9-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 336, in wrapped_f
    return copy(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/y/Library/Caches/pypoetry/virtualenvs/openhands-ai-AWLCSgR9-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 475, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/y/Library/Caches/pypoetry/virtualenvs/openhands-ai-AWLCSgR9-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 376, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/Users/y/Library/Caches/pypoetry/virtualenvs/openhands-ai-AWLCSgR9-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/Users/y/opt/anaconda3/envs/py3.11/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/Users/y/opt/anaconda3/envs/py3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/Users/y/Library/Caches/pypoetry/virtualenvs/openhands-ai-AWLCSgR9-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 478, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/Users/y/Documents/project/OpenHands/openhands/runtime/utils/request.py", line 59, in _send_request_with_retry
    response.raise_for_status()
  File "/Users/y/Library/Caches/pypoetry/virtualenvs/openhands-ai-AWLCSgR9-py3.11/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 413 Client Error: Request Entity Too Large for url: https://6fc2518e-3ac5-4bfc-acdc-72ef90de1a87.runtime.all-hands.dev/upload_file?destination=%2Ftmp&recursive=false

Current OpenHands version

0.9.4 (updated 4 days ago)

Installation and Configuration

3757  RUNTIME=remote EVAL_DOCKER_IMAGE_PREFIX="us-docker.pkg.dev/evaluation-428620/swe-bench-images" evaluation/swe_bench/scripts/eval_infer_remote.sh evaluation/evaluation_outputs/outputs/swe-bench-lite/CodeActAgent/o1-mini_maxiter_30_N_v1.9-no-hint/output.jsonl 16 "princeton-nlp/SWE-bench_Lite" "test" >eval_log.log 2>&1\n

Model and Agent

o1-mini
Code Act Agent

Operating System

MacOs

Reproduction Steps

No response

Logs, Errors, Screenshots, and Additional Context

No response

@mamoodi
Copy link
Collaborator

mamoodi commented Sep 25, 2024

Pinging @xingyaoww since he will have the best context for whenever he has time.

@mamoodi mamoodi added the severity:low Minor issues or affecting single user label Oct 2, 2024
Copy link
Contributor

github-actions bot commented Nov 2, 2024

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 30 days label Nov 2, 2024
@tobitege tobitege removed the Stale Inactive for 30 days label Nov 2, 2024
@tobitege
Copy link
Collaborator

tobitege commented Nov 2, 2024

I'm getting this error on main currently with fresh docker image when trying to submit a (small even) image.

Copy link
Contributor

github-actions bot commented Dec 4, 2024

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 30 days label Dec 4, 2024
Copy link
Contributor

This issue was closed because it has been stalled for over 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity:low Minor issues or affecting single user Stale Inactive for 30 days
Projects
None yet
Development

No branches or pull requests

3 participants