adafruit / adafruit/Adafruit_CircuitPython_ESP32SPI

TypeError: object of type 'NoneType' has no len()

Open
#220 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
102
Forks
71
Avg merge
2d 1h
Merged PRs (30d)
1

Description

This happens when the SSID and Password are not present in `settings.toml` .
* Hardwarte used:
Adafruit CircuitPython 9.2.4 on 2025-01-28; Adafruit PyPortal Titano with samd51j20
Firmware vers. 2.0.0-rc.0+adafruit

```python
Connecting to AP...
Traceback (most recent call last):
File "", line 1, in
File "conexion.py", line 66, in
File "adafruit_esp32spi/adafruit_esp32spi.py", line 690, in connect_AP
File "adafruit_esp32spi/adafruit_esp32spi.py", line 558, in wifi_set_network
File "adafruit_esp32spi/adafruit_esp32spi.py", line 429, in _send_command_get_response
File "adafruit_esp32spi/adafruit_esp32spi.py", line 307, in _send_command
TypeError: object of type 'NoneType' has no len()

```

for reference: @justmobilize

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with adafruit_esp32spi/adafruit_esp32spi.py at connect_AP, wifi_set_network, and _send_command_get_response, using the reported traceback and the missing SSID/password in settings.toml as the reproduction. Determine the expected behavior when either value is absent, then verify that the resulting handling no longer raises this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.