Cannot access captive portal after connecting to hotspot

I can connect to the configured hotspot but then http://192.168.4.1/ gives me the middle finger. I also configured the web server btw. Intriguingly the device (cyd) gets the time (configured to use ntp) from somewhere sometimes (maybe stored???). I use the latest ESPHome version via docker image btw.

The configuration is as follows:

wifi:
  networks:
    - ssid: !secret WIFI_L99_SSID
      password: !secret WIFI_L99_PW
  domain: !secret WIFI_DOMAIN
  min_auth_mode: WPA2  # Reject WPA-only networks
  ap:
    ssid: ${device_name}_Hotspot
    password: !secret AP_PASSWORD_ESP322432S028R_AKA_CYD
captive_portal:

The SSID does not exist, so the AP / captive portal should come up. The AP is available but the captive portal is not available at http://192.168.4.1/ .

web_server:
  port: 8888
  local: true
  include_internal: true

ota: and api: are configured as well. time: is aquired via NTP (if the device can connect).

Any ideas / hints / ...?

How this finger presents?
What device are you using to connect (some phones really don't want to connect to AP that doesn't offer internet) ?
This device shows you are connected to xxx_Hotspot and then? You get webserver, error or nothing?

Why not just put the ssid in the config and save all the trouble?

Sorry, but I do not get what you want to express. Can you rephrase your question, please?

It's the current version of firefox on Ubuntu Linux. I tried it from my Android smartphone with firefox either without success.

Linux tells me that I am connected to the hotspot, but if I use the above link I get an error message in the browser.

This is the style I configure my stuff which is regarded to on ESPHome.io as best practise. YMMV.

After disabling the web server I could access the captive portal.

This makes me wonder why captive_portal: is disabled while web_server: is configured, especially as both are on different ports. Couldn't find anything on this while doing some RTFM.

Any input on this?

You posted above that web server was not available either. If so, it sounds like bug.

You are right.

As far as I am considered as a software engineer this situation is a bug.

I filed an issue: Cannot access captive portal after connecting to configured hotspot with web_server: configured · Issue #17410 · esphome/esphome · GitHub