You need to sign in to do that
Don't have an account?
VarunC
Strange error in JS Remoting : "Remoting request invalid for your session. Refresh page and re-submit request"
I am receiving this error message as response to my JS Remoting Call:
I couldn't understand why would this error come, can anyone suggest how to resolve this error? Strangest thing is, it comes in most of the time ai load my VF tab first time, if I press 2-3 times F5 keey and then the JS remoting call works fine.
action: "Unknown" data: "" message: "Remoting request invalid for your session. Refresh page and re-submit request" method: "Unknown" ref: false statusCode: 402 type: "exception" vfDbg: true vfTx: true where: ""
I couldn't understand why would this error come, can anyone suggest how to resolve this error? Strangest thing is, it comes in most of the time ai load my VF tab first time, if I press 2-3 times F5 keey and then the JS remoting call works fine.
If you are facing this iisue you can disable the CSRF protection from Setup menu. However it is disabled by default.
Is it normal behavior for this to get corrupt?
Below are the details of my code:
APEX Method code:
This call when viewed in Chrome Console (the request headers):
The parameters view in Chrome Console:
Chrome Console "Preview" tab - http://screencast.com/t/wJMB4ixwx
and the dreaded Console Exception logged - http://screencast.com/t/pDFZQqJ6F9
The thing is, console is overwriting the actual Error message on why my JS remoting call is getting failed, and when I digg deaper, I couldn't understand why would the CSRF token get corrupted. I'm only initiating JS Remoting call when document is ready.