I was having same issue with <0.117 not accepting the auth token. I just updated to 0.118.3 this week and now I’m getting this in the logs when I hit the big red ‘reconfigure’ button in the Integrations page:
2020-11-27 11:51:38 INFO (SyncWorker_9) [plexapi] Testing 6 resource connections..
2020-11-27 11:51:38 ERROR (Thread-6) [plexapi] https://<my_address_1>.plex.direct:32400: HTTPSConnectionPool(host='<my_address_1>.plex.direct', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f64a820b580>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
2020-11-27 11:51:38 ERROR (Thread-11) [plexapi] http://<my_address_3>:8443: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Resource connection ERR (0s): https://<my_address_1>.plex.direct:32400?X-Plex-Token=<hidden>
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Resource connection OK (0s): https://<my_address_2>.plex.direct:32400?X-Plex-Token=<hidden>
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Resource connection OK (3s): https://<my_address_3>.plex.direct:8443?X-Plex-Token=<hidden>
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Resource connection OK (0s): http://<my_address_1>:32400?X-Plex-Token=<hidden>
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Resource connection OK (0s): http://<my_address_2>:32400?X-Plex-Token=<hidden>
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Resource connection ERR (0s): http://<my_address_3>:8443?X-Plex-Token=<hidden>
2020-11-27 11:51:41 INFO (SyncWorker_9) [plexapi] Connecting to Resource: https://<my_address_2>.plex.direct:32400?X-Plex-Token=<hidden>
2020-11-27 11:51:41 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 160, in get
return await super().get(request, flow_id)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 92, in get
result = await self._flow_mgr.async_configure(flow_id)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 155, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/plex/config_flow.py", line 327, in async_step_use_external_token
return await self.async_step_server_validate(server_config)
File "/usr/src/homeassistant/homeassistant/components/plex/config_flow.py", line 237, in async_step_server_validate
self.hass.config_entries.async_update_entry(entry, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 788, in async_update_entry
if data is not _UNDEF and entry.data != data: # type: ignore
AttributeError: 'NoneType' object has no attribute 'data'
It tried hitting my plex server using its private internal address, my public IP, and a public IP I assume is owned by Plex. But then it just poos itself. Over in the UI, it says “Please wait while the integration is being installed” and then just hung in a swirling circle.
I figure if I remove the integration and put it back, that might help. But I can’t remove the integration because of the big red ‘reconfigure’ button.