oyvindkinsey / easyXDM

A javascript library providing cross-browser, cross-site messaging/method invocation.
http://easyxdm.net
MIT License
2.37k stars 265 forks source link

IE7 - no response received in the callback for EasyXDM.rpc #195

Open srinivas1985 opened 12 years ago

srinivas1985 commented 12 years ago

Hi,

I have a strange issue.

I am using IE 7. When I make a xhrRequest with METHOD as GET, the call reaches the server and the server sends the response back. But the response is not received in the callback and not even the error is received.

This happens only when Antivirus is enabled.

When I disable the antivirus, it works fine but just seeing an js error in the status bar as up is null or not an object. But even with that error, it works fine.

I couldnt find any possible solution for it.

Code Snippet for XHRRequest call:

this.xhrRef = new easyXDM.Rpc({ remote: https://yyyzzz.com/xdm/cors/yy.html, delay: 30*1000

        },
        {

          remote: {
                request: {}

          }
        });

this.xhrRef.request({ url: "https://yyyzzz.com/profile, method: "GET", timeout: 30*1000, headers : { "accept": "application/json", "corrid": corrId }, data: data }, function(response){ console.log("In response block of get call");

            }, 
            function(error) {
                                           console.log("In error block of get call");
                            }
                );

Do anyone have any suggestions?

Regards

srinivas1985 commented 12 years ago

I tried running the url http://easyxdm.net/current/example/methods.html example in the same machine with IE7 and anti virus enabled.Please find the logs below Domain: easyxdm.net easyxdm.net - 14:49:13.219:{Private}: firing dom_onReady

easyxdm.net - 14:49:13.219:... deferred messages ...

easyxdm.net - 14:49:13.219:easyXDM.Rpc: constructor

easyxdm.net - 14:49:13.219:{Private}: preparing transport stack

easyxdm.net - 14:49:13.219:{Private}: resolved url 'http://consumer.easyxdm.net/current/example/remotemethods.html'

easyxdm.net - 14:49:13.219:{Private}: resolved url 'http://consumer.easyxdm.net/current/name.html'

easyxdm.net - 14:49:13.250:{Private}: selecting protocol: 2

easyxdm.net - 14:49:13.250:easyXDM.stack.NameTransport: constructor

easyxdm.net - 14:49:13.250:easyXDM.stack.QueueBehavior: constructor

easyxdm.net - 14:49:13.250:easyXDM.stack.VerifyBehavior: constructor

easyxdm.net - 14:49:13.250:easyXDM.stack.QueueBehavior: constructor

easyxdm.net - 14:49:13.250:easyXDM.stack.RpcBehavior: init

easyxdm.net - 14:49:13.250:easyXDM.stack.RpcBehavior: creating stubs

easyxdm.net - 14:49:13.266:easyXDM.stack.RpcBehavior: creating method addNumbers

easyxdm.net - 14:49:13.266:easyXDM.stack.RpcBehavior: creating method multiplyNumbers

easyxdm.net - 14:49:13.266:easyXDM.stack.RpcBehavior: creating method noOp

easyxdm.net - 14:49:13.266:... end of deferred messages ...

easyxdm.net - 14:49:13.266:easyXDM.stack.NameTransport: init

easyxdm.net - 14:49:13.266:{Private}: resolved url 'http://easyxdm.net/current/name.html'

easyxdm.net - 14:49:13.266:easyXDM.Fn: storing function default7550

easyxdm.net - 14:49:13.266:{Private}: creating frame: http://consumer.easyxdm.net/current/example/remotemethods.html?xdm_e=http%3A%2F%2Feasyxdm.net%2Fcurrent%2Fname.html&xdm_c=default7550&xdm_p=2#default7550

easyxdm.net - 14:49:13.297:{Private}: HAS_NAME_PROPERTY_BUG: true

easyxdm.net - 14:49:13.328:{Private}: creating frame: http://easyxdm.net/current/name.html#_4default7550

easyxdm.net - 14:49:13.344:{Private}: adding listener load

easyxdm.net - 14:49:13.453:easyXDM.Fn: retrieving function default7550_load

easyxdm.net - 14:49:13.453:easyXDM.Fn: default7550_load not found

easyxdm.net - 14:49:13.484:{Private}: removing listener load

easyxdm.net - 14:49:13.484:easyXDM.Fn: storing function default7550_load

easyxdm.net - 14:49:14.437:easyXDM.Fn: retrieving function default7550

easyxdm.net - 14:49:14.437:easyXDM.stack.NameTransport: received initial message ready

easyxdm.net - 14:49:14.437:easyXDM.Fn: storing function default7550

easyxdm.net - 14:49:14.453:easyXDM.stack.VerifyBehavior: requesting verification

easyxdm.net - 14:49:14.453:easyXDM.stack.QueueBehavior: dispatching from queue

easyxdm.net - 14:49:14.453:easyXDM.stack.NameTransport: sending message bab1de9d7bbce8

easyxdm.net - 14:49:14.453:easyXDM.stack.NameTransport: navigating to 'http://consumer.easyxdm.net/current/name.html#_3default7550'

easyxdm.net - 14:49:14.641:easyXDM.Fn: retrieving function default7550

easyxdm.net - 14:49:14.641:easyXDM.stack.NameTransport: received message ready

easyxdm.net - 14:49:14.641:easyXDM.stack.VerifyBehavior: returning secret

easyxdm.net - 14:49:14.891:easyXDM.Fn: retrieving function default7550

easyxdm.net - 14:49:14.891:easyXDM.stack.NameTransport: received message ready

easyxdm.net - 14:49:15.125:easyXDM.Fn: retrieving function default7550

easyxdm.net - 14:49:15.125:easyXDM.stack.NameTransport: received message ready

easyxdm.net - 14:49:15.453:easyXDM.Fn: retrieving function default7550

easyxdm.net - 14:49:15.469:easyXDM.stack.NameTransport: received message ready

easyxdm.net - 14:49:15.656:easyXDM.Fn: retrieving function default7550

Domain: consumer.easyxdm.net

consumer.easyxdm.net - 14:49:14.094:{Private}: firing dom_onReady

consumer.easyxdm.net - 14:49:14.094:... deferred messages ...

consumer.easyxdm.net - 14:49:14.094:easyXDM.Rpc: constructor

consumer.easyxdm.net - 14:49:14.094:{Private}: preparing transport stack

consumer.easyxdm.net - 14:49:14.094:{Private}: using parameters from query

consumer.easyxdm.net - 14:49:14.094:easyXDM.stack.NameTransport: constructor

consumer.easyxdm.net - 14:49:14.094:easyXDM.stack.QueueBehavior: constructor

consumer.easyxdm.net - 14:49:14.094:easyXDM.stack.VerifyBehavior: constructor

consumer.easyxdm.net - 14:49:14.109:easyXDM.stack.QueueBehavior: constructor

consumer.easyxdm.net - 14:49:14.109:easyXDM.stack.RpcBehavior: init

consumer.easyxdm.net - 14:49:14.109:easyXDM.stack.RpcBehavior: creating stubs

consumer.easyxdm.net - 14:49:14.109:easyXDM.stack.RpcBehavior: creating method alertMessage

consumer.easyxdm.net - 14:49:14.109:... end of deferred messages ...

consumer.easyxdm.net - 14:49:14.109:easyXDM.stack.NameTransport: init

consumer.easyxdm.net - 14:49:14.125:{Private}: resolved url 'http://consumer.easyxdm.net/current/name.html'

consumer.easyxdm.net - 14:49:14.125:easyXDM.Fn: storing function default7550

consumer.easyxdm.net - 14:49:14.125:{Private}: creating frame: http://consumer.easyxdm.net/current/name.html#_4default7550

consumer.easyxdm.net - 14:49:14.156:{Private}: HAS_NAME_PROPERTY_BUG: true

consumer.easyxdm.net - 14:49:14.156:{Private}: adding listener load

consumer.easyxdm.net - 14:49:14.266:easyXDM.Fn: retrieving function default7550_load

consumer.easyxdm.net - 14:49:14.281:easyXDM.Fn: default7550_load not found

consumer.easyxdm.net - 14:49:14.297:{Private}: removing listener load

consumer.easyxdm.net - 14:49:14.297:easyXDM.Fn: storing function default7550_load

consumer.easyxdm.net - 14:49:14.297:easyXDM.stack.NameTransport: sending message ready

consumer.easyxdm.net - 14:49:14.297:easyXDM.stack.NameTransport: navigating to 'http://easyxdm.net/current/name.html#_2default7550'

consumer.easyxdm.net - 14:49:14.297:easyXDM.stack.NameTransport: calling onReady

consumer.easyxdm.net - 14:49:14.500:easyXDM.Fn: retrieving function default7550_load

consumer.easyxdm.net - 14:49:14.500:{Private}: removing listener load

consumer.easyxdm.net - 14:49:14.516:easyXDM.Fn: storing function default7550_load

consumer.easyxdm.net - 14:49:14.516:easyXDM.stack.NameTransport: sending message ready

consumer.easyxdm.net - 14:49:14.516:easyXDM.stack.NameTransport: navigating to 'http://easyxdm.net/current/name.html#_2default7550'

consumer.easyxdm.net - 14:49:14.516:easyXDM.stack.NameTransport: calling onReady

consumer.easyxdm.net - 14:49:14.703:easyXDM.Fn: retrieving function default7550_load

consumer.easyxdm.net - 14:49:14.719:{Private}: removing listener load

consumer.easyxdm.net - 14:49:14.719:easyXDM.Fn: storing function default7550_load

consumer.easyxdm.net - 14:49:14.734:easyXDM.stack.NameTransport: sending message ready

consumer.easyxdm.net - 14:49:14.734:easyXDM.stack.NameTransport: navigating to 'http://easyxdm.net/current/name.html#_2default7550'

consumer.easyxdm.net - 14:49:14.734:easyXDM.stack.NameTransport: calling onReady

consumer.easyxdm.net - 14:49:14.937:easyXDM.Fn: retrieving function default7550_load

consumer.easyxdm.net - 14:49:14.984:{Private}: removing listener load

consumer.easyxdm.net - 14:49:14.984:easyXDM.Fn: storing function default7550_load

consumer.easyxdm.net - 14:49:14.984:easyXDM.stack.NameTransport: sending message ready

consumer.easyxdm.net - 14:49:14.984:easyXDM.stack.NameTransport: navigating to 'http://easyxdm.net/current/name.html#_2default7550'

consumer.easyxdm.net - 14:49:15.000:easyXDM.stack.NameTransport: calling onReady

consumer.easyxdm.net - 14:49:15.266:easyXDM.Fn: retrieving function default7550_load

consumer.easyxdm.net - 14:49:15.266:{Private}: removing listener load

consumer.easyxdm.net - 14:49:15.266:easyXDM.Fn: storing function default7550_load

consumer.easyxdm.net - 14:49:15.281:easyXDM.stack.NameTransport: sending message ready

consumer.easyxdm.net - 14:49:15.281:easyXDM.stack.NameTransport: navigating to 'http://easyxdm.net/current/name.html#_2default7550'

consumer.easyxdm.net - 14:49:15.297:easyXDM.stack.NameTransport: calling onReady

consumer.easyxdm.net - 14:49:15.531:easyXDM.Fn: retrieving function default7550_load

consumer.easyxdm.net - 14:49:15.531:{Private}: removing listener load

srinivas1985 commented 12 years ago

One more that I noticed is the Operating System is Windows XP.So the configuration is IE 7 in Win XP with Mcafee Antivirus enabled.