swellrt icon indicating copy to clipboard operation
swellrt copied to clipboard

Error in phantom.js

Open atd opened this issue 7 years ago • 4 comments

When loading swellrt in phantom.js, the following erros appears:

2016-10-02T09:47:58.913Z getting https://staging.teem.works/teems/cHJvdG90eXBlLnAycHZhbHVlLmV1L3MrbTNYVXBxNTVEZ0E
Atmosphere callback 200
Atmosphere callback 200
TypeError: Function.caller used to retrieve strict caller

  https://swellrt.staging.teem.works/swellrt/5DD6799DBD533E8AD639C0D7159FD847.cache.js:13148 in collect
  https://swellrt.staging.teem.works/swellrt/5DD6799DBD533E8AD639C0D7159FD847.cache.js:13032 in captureStackTrace_0
  https://swellrt.staging.teem.works/swellrt/5DD6799DBD533E8AD639C0D7159FD847.cache.js:21870 in toJava
  https://swellrt.staging.teem.works/swellrt/5DD6799DBD533E8AD639C0D7159FD847.cache.js:47237 in onMessage_1
  https://swellrt.staging.teem.works/swellrt/5DD6799DBD533E8AD639C0D7159FD847.cache.js:47003 in onMessage_0
  https://swellrt.staging.teem.works/swellrt/5DD6799DBD533E8AD639C0D7159FD847.cache.js:47123 in onMessage
  https://swellrt.staging.teem.works/atmosphere/atmosphere.js:2454 in _f
  https://swellrt.staging.teem.works/atmosphere/atmosphere.js:2444 in _invokeFunction
  https://swellrt.staging.teem.works/atmosphere/atmosphere.js:2540 in _invokeCallback
  https://swellrt.staging.teem.works/atmosphere/atmosphere.js:1278 in onmessage
Atmosphere callback 200
Atmosphere callback 200

atd avatar Oct 03 '16 07:10 atd

Would you mind, please, walking through the steps to replicate this issue? Environments, process, steps taken... these are important so that we can help.

Thanks!

llwp avatar Oct 11 '16 16:10 llwp

It seems it's related with JS strict mode. @atd is there any JS module involved in the execution? e.g a test library?

pablojan avatar Oct 13 '16 11:10 pablojan

Not sure.. We are using https://github.com/prerender/prerender with the script at https://github.com/P2Pvalue/docker-prerender/blob/master/server.js

atd avatar Oct 13 '16 11:10 atd

This seems to be one of the offending functions

image

I have searched arguments.callee.caller and cannot find the string in SwellRT code

Seems to be related with https://github.com/gwtproject/gwt/issues/9132

atd avatar Nov 29 '16 17:11 atd