Skip to content

[Bug]: Hosted Login did not reach loginSuccess #51

Closed

Description

@JeroenVdb

PostNL integration version

4.10.5

Home Assistant version

2026.11.0

What happened?

I'm getting this message in the frontend for some hours now:

PostNL could not complete the sign-in. This is usually temporary — try again in a few minutes.

I also installed the bpost integration, that one works.

Steps to reproduce

  1. install the integration via Marketplace
  2. setup the integration
  3. Fill in username/password (verified they work on postnl website)
  4. Error message appears

Relevant logs

08:29:23  WARNING [homeassistant.loader] We found a custom integration … (16× de standaardwaarschuwing per custom integration, ook postnl)
08:30:23  DEBUG   [custom_components.postnl.config_flow] PostNL login failed: Hosted Login did not reach loginSuccess

Activity

  1. added
    bug
    on Nov 18, 2026
  2. JeroenVdb commented on Nov 18, 2026

    @JeroenVdb
    Author

    I found the problem: while I did login into postnl.nl multiple times I was not offered an extra "Give some extra authorisations" screen.
    When I did the same in incognito mode I did get that extra screen, I accepted the extra terms, and now the integration works.

    Before the success, I ended up on the authRule_consents screen instead of loginSuccess

    ➜ postnl_login_debug.py
    PostNL e-mail: XXX
    PostNL wachtwoord: 
    [1] authorize: HTTP 200, 34392 bytes, csrf gevonden
        login screen: signIn
    [2] traditional_signin: HTTP 200
    [3] get_result poging 1: HTTP 200, accessToken ja, stat=None, statusMessage=signedIn
    [4] token-url: HTTP 200, redirect nee, 35786 bytes
        screenToRender: authRule_consents
        existingToken aanwezig: ja
        aicCsrf aanwezig: ja
        flowName: standard
        <title>: PostNL account
    
    ➜ postnl_login_debug.py
    PostNL e-mail: XXX
    PostNL wachtwoord: 
    [1] authorize: HTTP 200, 34392 bytes, csrf gevonden
        login screen: signIn
    [2] traditional_signin: HTTP 200
    [3] get_result poging 1: HTTP 200, accessToken ja, stat=None, statusMessage=signedIn
    [4] token-url: HTTP 200, redirect nee, 35781 bytes
        screenToRender: loginSuccess
        existingToken aanwezig: ja
        aicCsrf aanwezig: ja
        flowName: standard
        <title>: PostNL account
    
  3. JeroenVdb commented on Nov 18, 2026

    @JeroenVdb
    Author

    @peter-mdf might be a nice-to-have to adjust the error message based on this? I'll close this because the bug is actually solved.

  4. peter-mdf commented on Nov 18, 2026

    @peter-mdf
    Collaborator

    Thanks @JeroenVdb for the report! I've added error logging indeed for a future release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions