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

npm run test failed #96

Open
ghost opened this issue Oct 5, 2018 · 5 comments
Open

npm run test failed #96

ghost opened this issue Oct 5, 2018 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 5, 2018

After setting up the configuration, tried to run test cases.
It showed error :
ERR! getUserInfo { __ar: 1,
ERR! getUserInfo error: 1357004,
ERR! getUserInfo errorSummary: 'Sorry, something went wrong',
ERR! getUserInfo errorDescription: 'Please try closing and re-opening your browser window.',
ERR! getUserInfo payload: null,
ERR! getUserInfo bootloadable: {},
ERR! getUserInfo ixData: {},
ERR! getUserInfo bxData: {},
ERR! getUserInfo gkxData: {},
ERR! getUserInfo qexData: {},
ERR! getUserInfo lid: '6608887005208310168' }

@codeforequity-at
Copy link
Owner

what sample are you talking about ? is this the "fbdirect" sample ?

@ghost
Copy link
Author

ghost commented Oct 7, 2018

Yes correct. It's in fbdirect. I thought its related to my FB account but it was not.
I can easily log in to messenger and chat with my bot, but when I use same credentials for the testmybot then it shows this error. I inspected the page also, see screenshot if it helps.
screen shot 2018-10-05 at 10 19 27 pm
screen shot 2018-10-06 at 10 14 41 am

@codeforequity-at
Copy link
Owner

This is really hard to say. It seem to me that facebook rejects the login.
In general, the "fbdirect" mode is instable, as it basically hacks some facebook internal APIs.
I would recommend to switch to the new webdriver connector (which simulates clicking through with a real browser).

@ghost
Copy link
Author

ghost commented Oct 10, 2018

I resolved the same issue by using another account for testing purposes. Is it something related to particular account that I used ? and what is new Webdriver Connector ?

@codeforequity-at
Copy link
Owner

I had some strange problems with this as well ... sometimes my account became locked, depending on the workstation I used ... that's why I cannot recommend to do it this way.
the webdriver connector uses Selenium under the hood to test a chatbot directly on messenger.com

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

No branches or pull requests

1 participant