botium-bindings icon indicating copy to clipboard operation
botium-bindings copied to clipboard

npm run test failed

Open ghost opened this issue 6 years ago • 5 comments

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' }

ghost avatar Oct 05 '18 16:10 ghost

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

codeforequity-at avatar Oct 06 '18 08:10 codeforequity-at

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

ghost avatar Oct 07 '18 13:10 ghost

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).

codeforequity-at avatar Oct 10 '18 13:10 codeforequity-at

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 ?

ghost avatar Oct 10 '18 19:10 ghost

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

codeforequity-at avatar Oct 11 '18 08:10 codeforequity-at