vblagoje / pr-auto

Automatically generate comprehensive Pull Request descriptions
Apache License 2.0
18 stars 1 forks source link

Unexpected response 404 #2

Open weilinzung opened 1 day ago

weilinzung commented 1 day ago

Hello, we are getting below error

Traceback (most recent call last):
  File "/main.py", line 496, in <module>
    service_response = invoke_service_pipe.run(
  File "/opt/venv/lib/python3.10/site-packages/haystack/core/pipeline/pipeline.py", line 788, in run
    res = comp.run(**last_inputs[name])
  File "/opt/venv/lib/python3.10/site-packages/haystack/components/connectors/openapi_service.py", line 73, in run
    service_response = self._invoke_method(openapi_service, method_invocation_descriptor)
  File "/opt/venv/lib/python3.10/site-packages/haystack/components/connectors/openapi_service.py", line 217, in _invoke_method
    return method_to_call(**method_call_params)
  File "/opt/venv/lib/python3.10/site-packages/openapi3/openapi.py", line 256, in __call__
    return self.operation(self.base_url, *args, security=self.security, **kwargs)
  File "/opt/venv/lib/python3.10/site-packages/openapi3/paths.py", line 357, in request
    raise UnexpectedResponseError(result, self)
openapi3.errors.UnexpectedResponseError: Unexpected response 404 from compare_branches (expected one of 200, no default is defined)

name: Generate PR Description
on:
  pull_request:
    types: [opened, edited, reopened, ready_for_review]

jobs:
  main:
    name: PR Description
    runs-on: ubuntu-latest
    steps:
      - name: Generate PR Description
        uses: vblagoje/pr-auto@v1
        id: pr_auto
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          openai_api_key: ${{ secrets.OPENAI_API_KEY }}
          generation_model: gpt-4o-mini
          github_repository: ${{ github.repository }}
          base_branch: ${{ github.event.pull_request.base.ref }}
          head_branch: ${{ github.event.pull_request.head.ref }}
          user_prompt: test generating
vblagoje commented 1 day ago

Thanks for reporting - I'll fix this over the weekend!