testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Hammerhead error when clicking button that opens another page

Open pablorivera opened this issue 9 years ago • 4 comments

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

When clicking button that opens another page I'm getting Uncaught Error: Cannot call method 'split' of undefined [http://192.168.0.24:5194/hammerhead.js line: 1 column: 28104]. This happens randomly and makes the test to fail.

What is the expected behavior?

Page is loaded correctly.

How would you reproduce the current behavior (if this is a bug)?

This happens randomly, when clicking a button that redirects to other page

Specify your

  • operating system: MacOs Sierra 10.12.6
  • testcafe version: 0.18.1
  • node.js version: v8.1.2

pablorivera avatar Oct 20 '17 19:10 pablorivera

Hi @pablorivera,

Could you please us with the full error callstack? To find it you can run your tests with --debug-on-fail flag and opened browser's developer tools. The error should be appeared in the browser's console.

AlexanderMoskovkin avatar Oct 23 '17 09:10 AlexanderMoskovkin

Sure @AlexanderMoskovkin ! Here it is

screen shot 2017-10-23 at 10 41 21 am
POST http://192.168.0.24:61016/SJCY1diaZ/https://develop-i.quid.com/api/autocomplete 500 (Internal Server Error)

I had already opened a ticket for this https://github.com/DevExpress/testcafe/issues/1802

screen shot 2017-10-23 at 10 41 52 am
GET http://192.168.0.24:61016/SJCY1diaZ/https://develop-i.quid.com/api/networks/200822 500 (Internal Server Error)

I had already opened a ticket for this https://github.com/DevExpress/testcafe/issues/1802

screen shot 2017-10-23 at 10 42 06 am
Uncaught Error: Cannot call method 'split' of undefined
    at Function.t._error (hammerhead.js:1)
    at value (hammerhead.js:1)
    at F (livechatinit2.js:3)
    at G (livechatinit2.js:3)
    at H (livechatinit2.js:3)
    at A (livechatinit2.js:3)
    at a.bugsnag (bugsnag-3.min.js:2)
    at bugsnag-3.min.js:2

Please let me know if you need something else. Thanks!

pablorivera avatar Oct 23 '17 13:10 pablorivera

Hi @pablorivera . Console error, you provided, is a consequence of the problem. The cause of the problem - request to https://develop-i.quid.com/api/autocomplete finished with 500 http status code. It is difficult to understand why it is happen without direct access to the your application. Could we do a remote session with you using Skype, TeamViewer or something else? Or we need to example which we can run on our side.

miherlosev avatar Feb 22 '18 14:02 miherlosev

I'm closing this since there were no activity here for a long time. Feel free to reopen the issue if it's still needed. Also, you can try to run your tests on the latest TestCafe version.

miherlosev avatar Apr 28 '18 13:04 miherlosev