Skip to content

fix(ai-proxy): missing parsed_url nil check#11637

Merged
shreemaan-abhishek merged 4 commits into
apache:masterfrom
shreemaan-abhishek:fix-ai-proxy
Dec 16, 2024
Merged

fix(ai-proxy): missing parsed_url nil check#11637
shreemaan-abhishek merged 4 commits into
apache:masterfrom
shreemaan-abhishek:fix-ai-proxy

Conversation

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Description

The ai-proxy plugin code had missing nil check for parsed_url. This bug remained undetected by the test cases as all test cases use valid override.endpoint. While developing the plugin, this bug remained undeteced by me too because I was using self hosted openai server.

Fixes # (issue)

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@shreemaan-abhishek
shreemaan-abhishek marked this pull request as ready for review November 5, 2024 04:11
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working plugin labels Nov 5, 2024
@shreemaan-abhishek
shreemaan-abhishek merged commit f3c81b5 into apache:master Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working plugin size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants