Trouble uploading file to esp8266 using esphome

I am having difficulty loading a file. I keep loosing my USB connection. Also when I finally get connected I cant load using Wifi as auth expired. What does that menat and how do I fix it

Logs, yaml.

substitutions:`
name: esphome-web-898944
friendly_name: ESPHome Web 898944

esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: esphome.web
version: ‘1.0’
dallas:

  • pin: GPIO 15

esp8266:
board: nodemcuv2

Enable logging

logger:

Enable Home Assistant API

api:

Allow Over-The-Air updates

ota:

Allow provisioning Wi-Fi via serial

improv_serial:

wifi:

Set up a wifi access point

ap: {}

In combination with the ap this allows the user

to provision wifi credentials to the device via WiFi AP.

captive_portal:

dashboard_import:
package_import_url: github://esphome/example-configs/esphome-web/esp8266.yaml@main
import_full_config: true

To have a “next url” for improv serial

web_server:

[08:37:02]{l l��| �d�| � d� c<���e�{�c� b��og�l’o��� #p��${ls$p�’� �l�� co�<���c��gn� d��$�eng$’{���g c$�lx�n� {������ cg�| � b��og� $�eogl n{���g cēasۓn #��� 쎇pl ��n�l���e�'�{��n<�$ � dc� �|s�d�g� �g� d��;�$�d� $��s�l�le� l��{�d ǟ �ld���o��gl{$��[I][logger:034]: Log initialized
[08:37:03][C][ota:483]: There have been 4 suspected unsuccessful boot attempts.
[08:37:03][I][app:029]: Running through setup()…
[08:37:03][C][wifi:038]: Setting up WiFi…
[08:37:03][C][wifi:051]: Starting WiFi…
[08:37:03][C][wifi:052]: Local MAC: 68:C6:3A:89:89:67
[08:37:03][D][wifi:462]: Starting scan…
[08:37:03][W][component:157]: Component wifi set Warning flag: unspecified
[08:37:03][D][wifi:477]: Found networks:
[08:37:03][I][wifi:520]: - ‘VM0339339’ (4C:38:D8:24:86:61) [redacted]▂▄▆█
[08:37:03][D][wifi:522]: Channel: 11
[08:37:03][D][wifi:523]: RSSI: -54 dB
[08:37:03][I][wifi:520]: - ‘VM0339339’ (0A:A5:59:E1:21:F0) [redacted]▂▄▆█
[08:37:03][D][wifi:522]: Channel: 11
[08:37:03][D][wifi:523]: RSSI: -80 dB
[08:37:03][D][wifi:525]: - ‘’[redacted] (AE:38:D8:24:86:61) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘’[redacted] (0A:A5:59:E1:21:F3) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘’[redacted] (0A:3C:C5:93:B1:DF) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘’[redacted] (7A:97:41:19:F5:8B) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘VM0513989’[redacted] (0A:3C:C5:93:B1:DC) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘PLUSNET-HKCKTR’[redacted] (70:97:41:19:F5:8F) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘VM0513989’[redacted] (C0:05:C2:D6:A2:B1) [redacted]▂▄▆█
[08:37:03][D][wifi:525]: - ‘’[redacted] (22:05:C2:D6:A2:B1) [redacted]▂▄▆█
[08:37:03][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:07][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:37:07][W][wifi:633]: Error while connecting to network.
[08:37:07][D][wifi:677]: Retrying with hidden networks…
[08:37:07][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:07][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:37:07][W][wifi:633]: Error while connecting to network.
[08:37:07][D][wifi:677]: Retrying with hidden networks…
[08:37:12][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:12][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Association Leave’
[08:37:12][W][wifi:633]: Error while connecting to network.
[08:37:12][D][wifi:677]: Retrying with hidden networks…
[08:37:12][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:17][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:37:17][W][wifi:633]: Error while connecting to network.
[08:37:17][D][wifi:677]: Retrying with hidden networks…
[08:37:22][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:22][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:37:22][W][wifi:633]: Error while connecting to network.
[08:37:22][D][wifi:677]: Retrying with hidden networks…
[08:37:22][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:28][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:37:28][W][wifi:633]: Error while connecting to network.
[08:37:28][D][wifi:677]: Retrying with hidden networks…
[08:37:33][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:33][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:37:33][W][wifi:633]: Error while connecting to network.
[08:37:33][W][wifi:670]: Restarting WiFi adapter…
[08:37:33][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:38][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:37:38][W][wifi:633]: Error while connecting to network.
[08:37:38][D][wifi:677]: Retrying with hidden networks…
[08:37:43][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:43][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:37:43][W][wifi:633]: Error while connecting to network.
[08:37:43][D][wifi:677]: Retrying with hidden networks…
[08:37:43][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:48][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:37:48][W][wifi:633]: Error while connecting to network.
[08:37:48][D][wifi:677]: Retrying with hidden networks…
[08:37:53][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:53][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:37:53][W][wifi:633]: Error while connecting to network.
[08:37:53][D][wifi:677]: Retrying with hidden networks…
[08:37:53][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:37:55][I][wifi:172]: Starting fallback AP!
[08:37:55][C][wifi:253]: Setting up AP…
[08:37:55][C][wifi:255]: AP SSID: ‘Desk-Temperature’
[08:37:55][C][wifi:256]: AP Password: ‘vLuo8G1gW84N’
[08:37:56][C][wifi:265]: IP Address: 192.168.4.1
[08:37:59][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:37:59][W][wifi:633]: Error while connecting to network.
[08:38:04][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:38:04][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:38:04][W][wifi:633]: Error while connecting to network.
[08:38:04][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:38:09][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:38:09][W][wifi:633]: Error while connecting to network.
[08:38:14][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:38:14][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:38:14][W][wifi:633]: Error while connecting to network.
[08:38:14][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:38:20][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Auth Expired’
[08:38:20][W][wifi:633]: Error while connecting to network.
[08:38:25][I][wifi:303]: WiFi Connecting to ‘VM0339339’…
[08:38:25][W][wifi_esp8266:504]: Event: Disconnected ssid=‘VM0339339’ bssid=4C:38:D8:24:86:61[redacted] reason=‘Authentication Failed’
[08:38:25][W][wifi:633]: Error while connecting to network.
[08:38:25][I][wifi:303]: WiFi Connecting to ‘VM0339339’…

I hope you can make sense og all this. I have tried <> but I dont understand what it does or how to use it. Sorry

Please fix your post.