function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Patrick C Mayer 91Patrick C Mayer 91 

Error with Streaming API

I have followed the tutorial linked below for "Receiving Notifications in a Visualforce Page" numerous times and copy/pasted the code verbatim, but I get the same two errors every time.

https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Streaming_API

These are the error logs in google chromes JavaScript Console.

Refused to set unsafe header "User-Agent"                                                StreamingPage:1
Uncaught TypeError: Cannot read property 'replace' of undefined        StreamingPage:35

Not really sure what to do especially since StreamingPage is only 33 lines long.
AmitAmit (Salesforce Developers) 
Hello,

This was a known issue with Google Chrome 31, I would request you to please update Google Chrome and try again.

More information can be found at following link :

https://success.salesforce.com/issues_view?id=a1p30000000T1LRAA0

Thanks,
Amit Bhardwaj
Patrick C Mayer 91Patrick C Mayer 91
Been using the most recent Version 34.0.1847.131