Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jen Lim's Profile

GitHub User: jennojenno

Site: http://jenno-tumbles.tumblr.com/

Comments by Jen Lim

Avatar

Hey Ryan. I've just subscribed to your video series; you do great work!

In trying to follow this video tutorial, everything was going fine until I tried to hit /auth/facebook in my local dev environment. When I do that, in the rails log I see:

(facebook) Request phase initiated.

but in my browser's Network tab, it's giving me a 500 internal server error. The URL that redirects to Facebook from /auth/facebook is also different from what I see in your video. My URL looks like this: Link

The headers from the 500 error is this:

Request URL:https://www.facebook.com/dialog/oauth?client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Ffacebook%2Fcallback&response_type=code&scope=email&state=3880315fee1bad27b447b1f7a9182cbc13936ab3aba9c2cf
Request Method:GET
Status Code:500 Internal Server Error
Request Headers
:host:www.facebook.com
:method:GET
:path:/dialog/oauth?client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Ffacebook%2Fcallback&response_type=code&scope=email&state=3880315fee1bad27b447b1f7a9182cbc13936ab3aba9c2cf
:scheme:https
:version:HTTP/1.1
accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
accept-encoding:gzip,deflate,sdch
accept-language:en-US,en;q=0.8
cache-control:no-cache
cookie:datr=N7ADUoQXvw6UdLB-N8MKcYzQ; lu=TgycsLnxFoSBESa8yl--R-_w; presence=EM395330087EuserFA2206401370A2EstateFDsb2F1394724775594Et2F_5b_5dElm2FnullEuct2F1395329486BEtrFnullEtwF2973756414EatF1395330087738G394724801785CEchFDp_5f206401370F1CC; p=0; csm=2; xs=165%3A3IDWN-fGQXuRew%3A2%3A1392728086%3A9652; fr=0EILdfDICxAvudYXm.AWUos6UiT_ZibN_aT8Mj3vEqEu0.BS39_a.g1.FMh.AWUxRSJh; s=Aa4zKPNjh3RY4tH4.BTKzH7; c_user=206401370; act=1395341556842%2F11
pragma:no-cache
user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Query String Parametersview sourceview URL encoded
client_id:
redirect_uri:http://localhost:3000/auth/facebook/callback
response_type:code
scope:email
state:3880315fee1bad27b447b1f7a9182cbc13936ab3aba9c2cf
Response Headersview source
cache-control:private, no-cache, no-store, must-revalidate
content-length:0
content-security-policy:default-src *;script-src https://*.facebook.com http://*.facebook.com https://*.fbcdn.net http://*.fbcdn.net *.facebook.net *.google-analytics.com *.virtualearth.net *.google.com 127.0.0.1:* *.spotilocal.com:* chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl 'unsafe-inline' 'unsafe-eval' https://*.akamaihd.net http://*.akamaihd.net *.atlassolutions.com;style-src * 'unsafe-inline';connect-src https://*.facebook.com http://*.facebook.com https://*.fbcdn.net http://*.fbcdn.net *.facebook.net *.spotilocal.com:* https://*.akamaihd.net ws://*.facebook.com:* http://*.akamaihd.net https://fb.scanandcleanlocal.com:* *.atlassolutions.com http://attachment.fbsbx.com https://attachment.fbsbx.com;
content-type:text/html; charset=utf-8
date:Thu, 20 Mar 2014 19:03:10 GMT
expires:Sat, 01 Jan 2000 00:00:00 GMT
pragma:no-cache
status:500 Internal Server Error
strict-transport-security:max-age=43200
version:HTTP/1.1
x-content-type-options:nosniff
x-fb-debug:0tTj9ucZZpMVf5nrW9Dbjgzb/SZiI7K/8izSOGECaKQ=
x-frame-options:DENY
x-xss-protection:0

Any insight as to why it's not working? I'm guessing it's because I'm using a newer version of Rails / Ruby / Omniauth than this video... but any help would be super appreciated as I'm just stuck and Googling doesn't seem to be helping...

Thank you in advance!