Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error: HTTP 404] while creating web socket #1

Open
kms70847 opened this issue May 24, 2015 · 1 comment
Open

[Error: HTTP 404] while creating web socket #1

kms70847 opened this issue May 24, 2015 · 1 comment

Comments

@kms70847
Copy link

app terminates with [Error: HTTP 404], apparently while cabbage.js' createWebSocket is executing.

Steps to reproduce:

  • node app.js

Could it be that http://chat.stackoverflow.com/ws-auth has been moved/removed? I get "page not found" when I browse to it in my browser, as well.

@kms70847
Copy link
Author

kms70847 commented Jun 5, 2015

JRichardSnape was able to confirm that the ws-auth endpoint is still there and still operating. Starting around this message, he guided me through the process of talking to the web service from the broswer, which I will reproduce here.

  1. Determine your fKey value. View the source of an open chat room and search for a tag that looks like <input id="fkey" name="fkey" type="hidden" value="<fkey_value_goes_here>" />
  2. Open firefox and navigate to http://chat.stackoverflow.com/ws-auth. You will get a 404 page.
  3. go to tools -> web developer -> network.
  4. In the developer tool kit that appears, highlight the row that reads "404 | GET | ws-auth". Right click it and choose "Edit and Resend".
  5. In the New Request window, change GET to POST. Add content-type:application/x-www-form-urlencoded to the headers. Under Request Body, enter roomid=6&fkey=<your_special_fkey_value>.
  6. Hit Send.
  7. You should get a "200 | POST | ws-auth" row. Select the "response" tab to view your authentication code. It looks like url: "wss://chat.sockets.stackexchange.com/events/6/<hex code goes here>".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant