Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed get accounts #14

Closed
Rysakov1986 opened this issue Oct 29, 2020 · 2 comments · Fixed by #16
Closed

Failed get accounts #14

Rysakov1986 opened this issue Oct 29, 2020 · 2 comments · Fixed by #16
Labels
bug Something isn't working

Comments

@Rysakov1986
Copy link

Rysakov1986 commented Oct 29, 2020

Hello!
If i have logged more (account1, account2) accounts, i can logout account1 POST /accounts/{{username}}@{{domain}}/logout,
bur after rest POST {{host}}:6060/accounts return error http code 500:

{
    "message": "Something went Wrong :("
}

log http:

(2020-10-29 16:49:39) [INFO    ] Request: 127.0.0.1:53731 012D0DF8 HTTP/1.1 GET /accounts
(2020-10-29 16:49:39) [INFO    ] Response: 012D0DF8 /accounts 500 0

log app:

2020-10-29 16:55:52.812    account.cpp !pjsua_acc_get_info(id, &pj_ai) error: Invalid value or argument (PJ_EINVAL) (status=70004) [..\src\pjsua2\account.cpp:1022]

and after try send login account1 (POST {{host}}:6060/login) return and crash app:

{
    "account_name": "901@{{host}}",
    "id": 0,
    "message": "Account already exists, but login progress, please try again in sometime",
    "result": 202
}

if use logout all (POST {{host}}:6060/logout) no problem, all work very good!

Thx!

@kingster
Copy link
Member

Thanks for reporting this issue. Will get this scenario checked and update here.

@kingster kingster added the bug Something isn't working label Oct 30, 2020
@kingster
Copy link
Member

This has been resolved via #16 , please try with the latest artifacts and verify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants