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

Exception in user creation via xmpp #135

Open
hamdijmii1992 opened this issue Dec 20, 2016 · 1 comment
Open

Exception in user creation via xmpp #135

hamdijmii1992 opened this issue Dec 20, 2016 · 1 comment

Comments

@hamdijmii1992
Copy link

I tried to create two user with

escalus:create_users(Config0, {by_name, [mike, geralt]}).

but I got this exception:

 exception error: no function clause matching escalus_users:'-create_users_via_xmpp/2-lc$^0/1-0-'({by_name,[mike,geralt]}) (src/escalus_users.erl, line 99)
     in function  escalus_users:create_users_via_xmpp/2 (src/escalus_users.erl, line 99)

What's the source of this exception please ?

@fenek
Copy link
Member

fenek commented Dec 27, 2016

Hi hamdijmii1992

This is not a valid call for this function. Please try escalus:create_users(Config0, escalus:get_users([mike, geralt])). escalus:create_users/2 requires a list of full user specs, that can be provided with escalus:get_users/1. Alternatively, you can provide these specs manually if necessary.

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

No branches or pull requests

2 participants