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

Sweep: TypeError: fetch_relevant_files() got multiple values for argument 'images' #4114

Open
QuintinShaw opened this issue Jul 30, 2024 · 0 comments
Labels
sweep Assigns Sweep to an issue or pull request.

Comments

@QuintinShaw
Copy link

QuintinShaw commented Jul 30, 2024

Description

I encountered an error while using the Sweep service. The following traceback was generated during the execution:

Exception in thread Thread-1 (run_on_ticket):
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/app/sweepai/api.py", line 113, in run_on_ticket
    return on_ticket(*args, **kwargs, tracking_id=tracking_id)
  File "/app/sweepai/chat/api.py", line 200, in wrapper
    raise e
  File "/app/sweepai/chat/api.py", line 193, in wrapper
    result = function(
  File "/app/sweepai/handlers/on_ticket.py", line 729, in on_ticket
    raise e
  File "/app/sweepai/handlers/on_ticket.py", line 508, in on_ticket
    raise e
  File "/app/sweepai/handlers/on_ticket.py", line 425, in on_ticket
    for message, repo_context_manager in fetch_relevant_files.stream(
TypeError: fetch_relevant_files() got multiple values for argument 'images'

Steps to Reproduce

  1. Trigger a ticket with an issue that requires Sweep to process it.
  2. Monitor the logs for the execution of on_ticket.
  3. Observe the error that occurs regarding fetch_relevant_files.

Expected Behavior

The Sweep service should properly handle the processing of tickets without raising a TypeError.

Actual Behavior

The service raises a TypeError, indicating that the function fetch_relevant_files() is receiving multiple values for the argument 'images'.

❌ Unable to Complete PR

It looks like an issue has occurred around fetching the files. The exception was fetch_relevant_files() got multiple values for argument 'images'. tracking_id=0b36b8cc78

Additional Context

Please let me know if you need further information or if there are specific logs or configurations that could assist in diagnosing the issue.

Thank you for your assistance!

@QuintinShaw QuintinShaw added the sweep Assigns Sweep to an issue or pull request. label Jul 30, 2024
@QuintinShaw QuintinShaw changed the title Sweep: fix the bug of TypeError: fetch_relevant_files() got multiple values for argument 'images' Sweep: TypeError: fetch_relevant_files() got multiple values for argument 'images' Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

No branches or pull requests

1 participant