sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.46k stars 430 forks source link

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

Open QuintinShaw opened 3 months ago

QuintinShaw commented 3 months ago

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!