I have a slightly odd problem, I wonder if someone could help. We’re calling https://login.hub.daml.com/auth/ledger/{{LedgerID}}/parties
to get a list of parties after a new party is created on the ledger. We’re passing a bearer access token for the owner account - this is an access token generated for the our DAML Hub user by calling /auth/login
followed by /auth/ledger/{{LedgerID}}/user_grants
periodically.
My issue is that on one of my environments, every so often - perhaps once a day - the parties end point returns the users of an old ledger (one that doesn’t even exist any more). It’s like it’s ignoring the {{LedgerID}}
passed. Refreshing the owner access token seems to fix the issue, but why would this fix it? Why would the ledger ID be tied to an access token? Shouldn’t the owner user be above the level of the ledger? Any ideas or clues?