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
i get this error : Traceback (most recent call last):
webhook | File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
webhook | self.run()
webhook | File "/usr/local/lib/python3.10/threading.py", line 953, in run
webhook | self._target(*self._args, **self._kwargs)
webhook | File "/app/sweepai/api.py", line 145, in run_on_ticket
webhook | return on_ticket(*args, **kwargs, tracking_id=tracking_id)
webhook | File "/app/sweepai/handlers/on_ticket.py", line 1595, in on_ticket
webhook | raise e
webhook | File "/app/sweepai/handlers/on_ticket.py", line 726, in on_ticket
webhook | raise Exception("Failed to fetch files")
self hosting
Checklist
Modify sweepai/handlers/on_ticket.py ! No changes made Edit
Running GitHub Actions for sweepai/handlers/on_ticket.py ✗ Edit
The text was updated successfully, but these errors were encountered:
I'm sorry, but it looks like an error has occurred due to a planning failure. Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://discord.gg/sweep.
For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: 20948403df).
Please look at the generated plan. If something looks wrong, please add more details to your issue.
File Path
Proposed Changes
sweepai/handlers/on_ticket.py
Modify sweepai/handlers/on_ticket.py with contents: • Locate the section in the on_ticket function where files are fetched or operations related to file fetching are performed. This could be around interactions with the GitHub API for retrieving repository files or any custom logic for file processing. • Wrap the file fetching operations in a try-except block to catch exceptions. In the except block, log the exception using the existing logger instance with an appropriate error message that includes the tracking_id for context. For example: logger.error(f"Failed to fetch files for tracking_id={tracking_id}: {e}"), where e is the caught exception. • After logging the error, decide on the appropriate action. If the operation can continue without the fetched files, allow the function to proceed. If the files are critical for the operation, return a failure response similar to other failure points in the function, e.g., return {"success": False, "reason": "Failed to fetch files"}. • Ensure that any modifications maintain the existing structure and logic of the on_ticket function, focusing solely on improving error handling and resilience. • Review changes to ensure that they follow the coding standards of the repository and do not introduce any syntax errors.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
i get this error : Traceback (most recent call last):
webhook | File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
webhook | self.run()
webhook | File "/usr/local/lib/python3.10/threading.py", line 953, in run
webhook | self._target(*self._args, **self._kwargs)
webhook | File "/app/sweepai/api.py", line 145, in run_on_ticket
webhook | return on_ticket(*args, **kwargs, tracking_id=tracking_id)
webhook | File "/app/sweepai/handlers/on_ticket.py", line 1595, in on_ticket
webhook | raise e
webhook | File "/app/sweepai/handlers/on_ticket.py", line 726, in on_ticket
webhook | raise Exception("Failed to fetch files")
self hosting
Checklist
sweepai/handlers/on_ticket.py
! No changes made Editsweepai/handlers/on_ticket.py
✗ EditThe text was updated successfully, but these errors were encountered: