#Portainer not using URL

1 messages · Page 1 of 1 (latest)

blissful dove
#

Hello,
Has anyone else got the Portainer error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/pyportainer/pyportainer.py", line 132, in _request
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 636, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='http://localhost/api/endpoints'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/portainer/config_flow.py", line 68, in async_step_user
    await _validate_input(self.hass, user_input)
  File "/usr/src/homeassistant/homeassistant/components/portainer/config_flow.py", line 44, in _validate_input
    await client.get_endpoints()
  File "/usr/local/lib/python3.13/site-packages/pyportainer/pyportainer.py", line 182, in get_endpoints
    endpoints = await self._request("endpoints")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pyportainer/pyportainer.py", line 142, in _request
    raise PortainerNotFoundError(msg) from err
pyportainer.exceptions.PortainerNotFoundError: Resource not found at GET http://localhost/api/endpoints: 404, message='Not Found', url='http://localhost/api/endpoints'```
when setting up portainer? I have my local link and port put in during the setup but it just says unexpected error when I click submit. The above is what appears in my logs.
Thanks!
brazen sequoia
#

You're putting in a complete, valid URL w/ the port in the URL field?

#

Kind of looks like it's falling back to defaults connecting to localhost

blissful dove
brazen sequoia
#

I'd try making it a valid URL by specifying the protocol, either http or https

blissful dove
#

Gets failed to connect