Skip to content

urequests error: IndexError: list index out of range #300

@jperaltamalvar

Description

@jperaltamalvar

urequests is working fine with HTTP, but not with HTTPS. I cannot even get the examples working:

`MicroPython v1.9.4-442-g17b512020 on 2018-08-07; ESP32 module with ESP32
Type "help()" for more information.

import urequests
r = urequests.get('https://micropython.org/ks/test.html')
Traceback (most recent call last):
File "", line 1, in
File "urequests.py", line 108, in get
File "urequests.py", line 54, in request
IndexError: list index out of range
r = urequests.get('https://www.google.com')
Traceback (most recent call last):
File "", line 1, in
File "urequests.py", line 108, in get
File "urequests.py", line 54, in request
IndexError: list index out of range`

Next line in the "urequests.py" file returns an empty array:
ai = usocket.getaddrinfo(host, port, 0, usocket.SOCK_STREAM)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions