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

Aiohttp fails when using intel ax200 wireless card #86856

Closed
JasperTecHK mannequin opened this issue Dec 20, 2020 · 3 comments
Closed

Aiohttp fails when using intel ax200 wireless card #86856

JasperTecHK mannequin opened this issue Dec 20, 2020 · 3 comments
Labels
3.8 only security fixes topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@JasperTecHK
Copy link
Mannequin

JasperTecHK mannequin commented Dec 20, 2020

BPO 42690
Nosy @ronaldoussoren, @asvetlov, @1st1, @JasperTecHK
Files
  • tetherror.txt
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-12-20.08:16:56.535>
    labels = ['type-bug', '3.8', 'expert-asyncio']
    title = 'Aiohttp fails when using intel ax200 wireless card'
    updated_at = <Date 2020-12-28.10:07:01.129>
    user = 'https://github.com/JasperTecHK'

    bugs.python.org fields:

    activity = <Date 2020-12-28.10:07:01.129>
    actor = 'ronaldoussoren'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['asyncio']
    creation = <Date 2020-12-20.08:16:56.535>
    creator = 'JasperTecHK'
    dependencies = []
    files = ['49693']
    hgrepos = []
    issue_num = 42690
    keywords = []
    message_count = 2.0
    messages = ['383425', '383889']
    nosy_count = 4.0
    nosy_names = ['ronaldoussoren', 'asvetlov', 'yselivanov', 'JasperTecHK']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42690'
    versions = ['Python 3.8']

    @JasperTecHK
    Copy link
    Mannequin Author

    JasperTecHK mannequin commented Dec 20, 2020

    Not sure what the protocol is for reporting the bug, but based on my, albeit limited, testing, on two separate machines running the same model of wireless card(but different cards), the Intel AX200 wireless card, aiohttp fails to finish scraping from webpages. The issue does not occur when both machines are using ethernet. The issue was tested on a AWS instance as well to try and eliminate the issue as well.

    Further information is here, but I only got around to checking on a second machine a few minutes ago.

    https://www.reddit.com/r/learnpython/comments/jiu452/asyncio_erroring_on_one_machine/

    Things done to eliminate variables:
    Tested on different network access methods (wlan0 vs eth0)
    Tested on two different machines
    Tested on two different OSes (Win 10, Ubuntu 20.04)

    Interestingly, I did test with three different networks. First one was AWS, which worked as expected. The two others exhibited strange behavior.

    Network A is a cable modem network from xfinity. We use our own router. When connected via wifi on either machine and run, the error as shown in my reddit thread above occurs, but if I run an ethernet line to it(though through a wifi-to-ethernet bridge on a rpi4 due to my room being unable to run a direct line of ethernet there, which is connected to the exact same wifi source as the two machines mentioned above), it will complete without errors.

    Network B is my mobile tethering. Windows being Windows, it has a hissy fit and doesn't want to play nice. So I was only able to run a test on my Ubuntu machine. This time, I get an error that stated the server disconnected, but if I add in a wg vpn through a EC2 server, it completes, albeit slowly, but that's understandable.

    Tldr: Network A was tested two ways.
    wifi ap > Win10/ubuntu = fail. Error message is what is shown in the reddit thread.
    wifi ap > rpi wlan-eth bridge > win10/ubuntu = pass.
    Note: The vpn mentioned in Network B was also tested on Network A but did not make a difference.

    Network B
    mobile tethering > ubuntu = fail. Error is a Server Disconnect. Full error is attached.
    mobile tethering > ubuntu + wg to EC2 = pass.

    I understand that since this doesn't appear to be a widespread issue, not a lot of help would be available for this. But it would be nice to at least be able to figure out what the problem is.

    @JasperTecHK JasperTecHK mannequin added 3.8 only security fixes topic-asyncio type-bug An unexpected behavior, bug, or error labels Dec 20, 2020
    @ronaldoussoren
    Copy link
    Contributor

    What's the script used, is it the script in the reddit thread?

    The reddit thread mentions a change to the script that might help:

     return [await r.json() for r in responses]
    

    To:
    return await asyncio.gather(*(r.json() for r in responses))

    Does that remove the error?

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @kumaraditya303
    Copy link
    Contributor

    Closing as follow up information was not provided.

    @kumaraditya303 kumaraditya303 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes topic-asyncio type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants