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

AttributeError: 'NoneType' object has no attribute 'split' #6199

Closed
xoriole opened this issue Jul 2, 2021 · 4 comments
Closed

AttributeError: 'NoneType' object has no attribute 'split' #6199

xoriole opened this issue Jul 2, 2021 · 4 comments

Comments

@xoriole
Copy link
Contributor

xoriole commented Jul 2, 2021

Detected during #6198 PR test on Windows 64 bit

self = <test_triblertunnel_community.TestTriblerTunnelCommunity testMethod=test_perform_http_request_multipart>

    async def test_perform_http_request_multipart(self):
        """
        Test whether getting a large HTTP response works
        """
        self.add_node_to_experiment(self.create_node())
        self.nodes[1].overlay.settings.peer_flags.add(PEER_FLAG_EXIT_HTTP)
        await self.introduce_nodes()
    
        http_port = TestTriblerTunnelCommunity.get_free_port()
        http_tracker = HTTPTracker(http_port)
        http_tracker.tracker_info.add_info_about_infohash('0', 0, 0)
        http_tracker.tracker_info.infohashes['0']['downloaded'] = os.urandom(10000)
        await http_tracker.start()
        response = await self.nodes[0].overlay.perform_http_request(('127.0.0.1', http_tracker.port),
                                                                    b'GET /scrape?info_hash=0 HTTP/1.1\r\n\r\n')
    
>       self.assertEqual(response.split(b'\r\n')[0], b'HTTP/1.1 200 OK')
E       AttributeError: 'NoneType' object has no attribute 'split'

src\tribler-core\tribler_core\modules\tunnel\tests\test_triblertunnel_community.py:593: AttributeError
@xoriole xoriole added this to the Backlog milestone Jul 2, 2021
@ichorid ichorid modified the milestones: Backlog, 7.11.0 July Jul 2, 2021
@drew2a
Copy link
Contributor

drew2a commented Oct 1, 2021

Seems to be working now.

@drew2a drew2a closed this as completed Oct 1, 2021
@devos50
Copy link
Contributor

devos50 commented Oct 27, 2021

Encountered it again in #6503, see here for the detailled log.

@devos50 devos50 reopened this Oct 27, 2021
@drew2a drew2a modified the milestones: 7.11.0 October, Backlog Oct 27, 2021
@drew2a
Copy link
Contributor

drew2a commented Jan 6, 2022

@drew2a
Copy link
Contributor

drew2a commented Apr 11, 2022

All tested-related issues should be solved in #6851 after merging #6850 and #6855.

If the issue is encountered again, feel free to reopen it.

@drew2a drew2a closed this as completed Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants