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

Interacting with aiohttp.request results in error (version 3.11.0) #9878

Closed
1 task done
brent-cybrid opened this issue Nov 14, 2024 · 4 comments
Closed
1 task done
Labels

Comments

@brent-cybrid
Copy link

Describe the bug

We're using the aiohttp.request coroutine, however since updating to v3.11.0 we see the following error:

TypeError: RequestInfo.__new__() missing 1 required positional argument: 'real_url'

To Reproduce

  1. Make a call using aiohttp.request, e.g.,
aiohttp.request(method, url, data=body, headers=headers, auth=None, **kwargs) 

Expected behavior

No error would be raised

Logs/tracebacks

TypeError: RequestInfo.__new__() missing 1 required positional argument: 'real_url'


### Python Version

```console
$ python --version

Python 3.12.7

aiohttp Version

$ python -m pip show aiohttp

3.11.0

multidict Version

$ python -m pip show multidict

6.1.0

propcache Version

$ python -m pip show propcache

0.2.0

yarl Version

$ python -m pip show yarl

1.17.1

OS

Mac OS X, Alpine container

Related component

Client

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@bdraco
Copy link
Member

bdraco commented Nov 14, 2024

duplicate of #9866

@bdraco bdraco closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
@webknjaz
Copy link
Member

@bdraco is this fixed with #9875?

@bdraco
Copy link
Member

bdraco commented Nov 14, 2024

@bdraco is this fixed with #9875?

yes

@Dreamsorcerer
Copy link
Member

Well, aiohttp.request() should work. I'm hoping they just failed to mention they were using aioresponses (which would be obvious if the traceback, as requested in the template, was actually provided...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants