Skip to content

All codegate commands causing an error in Copilot #723

Closed
@danbarr

Description

@danbarr

Describe the issue

Upgraded from v0.1.10 to v0.1.12, and now all codegate commands error out when using Copilot. Other prompts are working.

They're working via Continue.

Shows "Generating..." then after 30 seconds, the chat returns an error:

Image

Error in the container logs:

2025-01-22T13:05:45.157940Z [info     ] Pipeline created shortcut response: b'{"id":"chatcmpl-29da0a19-752b-454b-b68f-8f29014942fe","created":1737551145,"model":"gpt-4o-mini","object":"chat.completion.chunk","choices":[{"finish_reason":"stop","index":0,"delta":{"content":"CodeGate version: v0.1.12","role":"assistant"}}]}' lineno=128 module=pipeline pathname=/app/src/codegate/providers/copilot/pipeline.py
2025-01-22T13:05:45.158120Z [error    ] Task exception was never retrieved
future: <Task finished name='Task-1841' coro=<CopilotProvider._forward_data_to_target() done, defined at /app/src/codegate/providers/copilot/provider.py:335> exception=TypeError('cannot unpack non-iterable NoneType object')> lineno=1826 module=base_events pathname=/usr/local/lib/python3.12/asyncio/base_events.py
Traceback (most recent call last):
  File "/app/src/codegate/providers/copilot/provider.py", line 340, in _forward_data_to_target
    pipeline_output = await self._forward_data_through_pipeline(data)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/src/codegate/providers/copilot/provider.py", line 294, in _forward_data_through_pipeline
    body, context = await self._body_through_pipeline(
    ^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object

Steps to Reproduce

Run codegate v0.1.12 and enter codegate version into the Copilot chat.

Operating System

MacOS (Arm)

IDE and Version

VS Code 1.96.4

Extension and Version

Copilot 1.257.0

Provider

GitHub Copilot

Model

GPT-4

Codegate version

v0.1.12

Logs

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions