Last modified: 2014-06-05 18:26:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68204, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66204 - stream.wikimedia.org: Unable to establish connection
stream.wikimedia.org: Unable to establish connection
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Stream (Other open bugs)
wmf-deployment
All All
: High blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-05 17:39 UTC by Krinkle
Modified: 2014-06-05 18:26 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2014-06-05 17:39:05 UTC
Example:

* Using socket.io 0.9.16 from cdnjs.cloudflare.com:
  http://codepen.io/Krinkle/full/eGDqc

 - Makes one failed XHR connection.
 - Emits 'error' event.
 - Nothing else is attempted.

XMLHttpRequest cannot load http://stream.wikimedia.org/socket.io/1/?t=1401989718292. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access. 



* Using socket.io 1.0.4 from cdn.socket.io:
  http://codepen.io/Krinkle/full/laucI

 - Seems to make infinite attempts at XHR polling.
 - Never emits 'error' event. 
 - Nothing else is attempted.

XMLHttpRequest cannot load http://stream.wikimedia.org/socket.io/?EIO=2&transport=polling&t=1401989761220-0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access. laucI:1
XMLHttpRequest cannot load http://stream.wikimedia.org/socket.io/?EIO=2&transport=polling&t=1401989762334-1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access. laucI:1
XMLHttpRequest cannot load http://stream.wikimedia.org/socket.io/?EIO=2&transport=polling&t=1401989764464-2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access. laucI:1


--

Searching for this error on Google yields loads of results. People are running into this a lot. Mostly when dealing with loading the socket.io.js from another domain (not sure whether they need it to be the client domain, codepen in this case, or the target domain, stream.wikimedia.org in this case).

Either way, it looks like enabling CORS might mitigate this problem. However I'm concerned about two things:

1) Why is it not trying other transports? (like, wtf, WebSockets?)

2) If we enable CORS, that might work for modern browsers, but we still need it to fallback to other things, like jsonp.
Comment 1 Krinkle 2014-06-05 18:26:57 UTC
This issue has been resolved.

I changed http://codepen.io/Krinkle/full/laucI back to using v0.9.16 because v 1.0.4 is still not working for some reason.

Fixed by:

> operations/puppet.git
> Change-Id: If31ac6e2cdb18ac40377a659a2850c6fcc90076a

.. because the CORS error really was just a 404 error in disguise.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links