400 Bad request error after starting Faye messaging application

I am trying to follow the instructions at the following git link

https://github.com/ryanb/railscasts-episodes/tree/master/episode-260/

This is one example of ruby ​​on rails code. I want to have a game and hack ruby ​​on rails code (since I'm new to RoR).

After following the instructions, for example, downloading gem, installing faye, etc., as soon as I opened the localhost: 9292 / faye page, I could not get any pages other than "Bad Request". I searched this online to find possible solutions, but to no avail after 24 hours. I'm not sure that I may have made a mistake with the setup.

I did everything well according to the instructions - so it happened all of a sudden?

Here is the title response in Google Chrome

Request URL:http://localhost:9292/faye 
Request Method:GET
Status Code:400 Bad Request
Request Headersview parsed
GET /faye HTTP/1.1
Host: localhost:9292
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)     Chrome/32.0.1700.107 Safari/537.36
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,it;q=0.6,de;q=0.4
Response Headersview parsed
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close
Server: thin 1.6.1 codename Death Proof

I am using ruby ​​version 1.9.3p484

!

Andy

+3
2

railscasts. , , , localhost: 3000, localhost: 9292/faye, .

+1

Github

curl http://localhost:9292/faye -d 'message={"channel":"/messages/new", "data":"hello"}'

, curl POST (-d) . , GET . , 400 .

curl http POST , .

0

All Articles