Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Added auto reauthentication #49

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Added auto reauthentication #49

wants to merge 5 commits into from

Conversation

andrazjelenc
Copy link
Contributor

If we used an expired session token, we would get the following answer (200 OK):

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32602,
        "message": "Invalid params.",
        "data": "Session terminated, re-login, please."
    },
    "id": "1"
}

That caused:
System.Exception: 'Invalid params.' with Inner Exception: 'Session terminated, re-login, please. - code:-32602'

Now, the re-authentication process is started in this situation and request is sent again with new session token. If this new session token is still invalid, the exception is returned as before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant