GPSLogger and OWNTracks integrations don't provide webhooks

I’m attempting to add the GPSLogger integration after reinstalling HA OS - my goal is to use either GPSLogger or OWNTracks as a second device_tracker (the mobile app is my primary, as well as our router to determine when we are home). When the integration is selected from the integrations panel, I get the expected pop-up from config flow:
image

When I click on Submit, I expect to see a webhook that I can use with the GPSLogger app on my phone. But I get this instead stating “Unknown error occurred”:
image

The log provides this information on the error:

2021-05-10 13:58:28 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 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    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 74, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 199, 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 257, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_flow.py", line 159, in async_step_user
    webhook_url = self.hass.components.webhook.async_generate_url(webhook_id)
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 60, in async_generate_url
    get_url(hass, prefer_external=True, allow_cloud=False),
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 116, in get_url
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

I also tried with OwnTracks, and ended up with a similar error:

2021-05-10 13:44:00 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 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    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 74, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 199, 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 257, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/owntracks/config_flow.py", line 27, in async_step_user
    webhook_id, webhook_url, cloudhook = await self._get_webhook_id()
  File "/usr/src/homeassistant/homeassistant/components/owntracks/config_flow.py", line 76, in _get_webhook_id
    webhook_url = self.hass.components.webhook.async_generate_url(webhook_id)
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 60, in async_generate_url
    get_url(hass, prefer_external=True, allow_cloud=False),
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 116, in get_url
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

It seems it’s looking for a URL, but I have no idea what that would be (and where I would enter it).

I followed the instructions in the docs for GPSLogger, but they don’t say a lot about the webhook - just that there will be one.

Do these still work (I have used them both in the past, but it’s been awhile), or is it possible I’ve goofed up something with webhook generation? Anyone have any idea what the problem is and how I can fix it? Or are these just ready to be retired at this point (the last forum question about these seems to be a year ago), and now neither of them is available through the Google app store (they are through F-Droid).

Thanks for any help!

same…
Have you found a solution?

No… It seems they are dead (my perception). I switched to the HA Mobile app - that seems to be working quite well… now… it had a few reliability issues at the start. It provides essentially the same information I gathered from GPSLogger plus some. I don’t recall seeing breaking changes in the updates for webhooks, but I may have missed it.

I just ran into the same problem, and was about to give up when I came up to this post (not related to it but gave me a clue) https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/issues/35

somewhere in it there was a reference to a parameter in the configuration.yaml:

external_url: "https://mydomain.xxx" (use your domain here)
internal_url: "https://homeassistant.local:8123" (IP or local name here)

Add these attributes, restart server and it will allow the GPSlogger installation, or at least it did it for me.

you can work only with the internal_url if you want to…

Regards