Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: setup middleware without client argument for starlette #1952

Conversation

gabriel-f-santos
Copy link
Contributor

@gabriel-f-santos gabriel-f-santos commented Jan 16, 2024

What does this pull request do?

Fix TypeError when using the starlette middleware without explicitly providing a client

Related issues

Closes #1951

@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Jan 16, 2024
basepi
basepi previously approved these changes Jan 16, 2024
@basepi
Copy link
Contributor

basepi commented Jan 16, 2024

Looks great! Thanks for adding a test, too!

@basepi
Copy link
Contributor

basepi commented Jan 16, 2024

@elasticmachine, run elasticsearch-ci/docs

@basepi basepi enabled auto-merge (squash) January 16, 2024 21:35
@basepi
Copy link
Contributor

basepi commented Jan 18, 2024

sigh apparently this is hitting #1916 for python 3.12.

3.12.2 can't come fast enough. I'm going to exclude the starlette tests from 3.12 until then.

@basepi
Copy link
Contributor

basepi commented Jan 22, 2024

@elasticmachine, run elasticsearch-ci/docs

@basepi basepi merged commit 1ad759a into elastic:main Jan 22, 2024
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-python community Issues opened by the community triage Issues awaiting triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FastApi / Starlette setup without client argument not working
3 participants