Issue due proxy in browser “server_url (squid/3.1.19)”


OAuth2::Error

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd“> <html><head> <meta http-equiv=”Content-Type” CONTENT=”text/html; charset=utf-8″> <title>ERROR: The requested URL could not be retrieved</title> <style type=”text/css”><!– /* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates http://www.freecsstemplates.orgReleased for free under a Creative Commons Attribution 2.5 License */ /* Page basics */ * { font-family: verdana, sans-serif; } html body { margin: 0; padding: 0; background: #efefef; font-size: 12px; color: #1e1e1e; } /* Page displayed title area */ #titles { margin-left: 15px; padding: 10px; padding-left: 100px; background: url(‘http://www.squid-cache.org/Artwork/SN.png‘) no-repeat left; } /* initial title */ #titles h1 { color: #000000; } #titles h2 { color: #000000; } /* special event: FTP success page titles */ #titles ftpsuccess { background-color:#00ff00; width:100%; } /* Page displayed body content area */ #content { padding: 10px; background: #ffffff; } /* General text */ p { } /* error brief description */ #error p { } /* some data which may have caused the problem */ #data { } /* the error message received from the system or other software */ #sysmsg { } pre { font-family:sans-serif; } /* special event: FTP / Gopher directory listing */ #dirmsg { font-family: courier; color: black; font-size: 10pt; } #dirlisting { margin-left: 2%; margin-right: 2%; } #dirlisting tr.entry td.icon,td.filename,td.size,td.date { border-bottom: groove; } #dirlisting td.size { width: 50px; text-align: right; padding-right: 5px; } /* horizontal lines */ hr { margin: 0; } /* page displayed footer area */ #footer { font-size: 9px; padding-left: 10px; } body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; } –></style> </head><body id=ERR_CONNECT_FAIL> <div id=”titles”> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id=”content”> <p>The following error was encountered while trying to retrieve the URL: <a href=”http://localhost:3000/api/v2/oauth/authorize“>http://localhost:3000/api/v2/oauth/authorize</a></p> <blockquote id=”error”> <p><b>Connection to 127.0.0.1 failed.</b></p> </blockquote> <p id=”sysmsg”>The system returned: <i>(111) Connection refused</i></p> <p>The remote host or network may be down. Please try the request again.</p> <p>Your cache administrator is <a href=”mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_CONNECT_FAIL&amp;body=CacheHost%3A%20bigfish.coeus-solutions.de%0D%0AErrPage%3A%20ERR_CONNECT_FAIL%0D%0AErr%3A%20(111)%20Connection%20refused%0D%0ATimeStamp%3A%20Wed,%2012%20Nov%202014%2011%3A07%3A38%20GMT%0D%0A%0D%0AClientIP%3A%20192.168.2.20%0D%0AServerIP%3A%20127.0.0.1%0D%0A%0D%0AHTTP%20Request%3A%0D%0APOST%20%2Fapi%2Fv2%2Foauth%2Fauthorize%20HTTP%2F1.1%0AUser-Agent%3A%20Faraday%20v0.9.0%0D%0AContent-Type%3A%20application%2Fx-www-form-urlencoded%0D%0AAuthorization%3A%20Basic%20bGo2MGdob2ptMXpkMDVwbm90ejZocGhnZDVqZG9hZTo3OTlmOHRndjA4d21uOWE4aWw0bWFpM2k4bGtmZjNo%0D%0AAccept-Encoding%3A%20gzip%3Bq%3D1.0,deflate%3Bq%3D0.6,identity%3Bq%3D0.3%0D%0AAccept%3A%20*%2F*%0D%0AConnection%3A%20close%0D%0AHost%3A%20localhost%3A3000%0D%0AContent-Length%3A%20280%0D%0A%0D%0A%0D%0A”>webmaster</a>.</p> <br> </div> <hr> <div id=”footer”> <p>Generated Wed, 12 Nov 2014 11:07:38 GMT by bigfish.coeus-solutions.de (squid/3.1.19)</p> <!– ERR_CONNECT_FAIL –> </div> </body></html>
Solution
see it was  a squid error , means the traffic is going via proxy, then check the URL that the squid error page was displaying , it washttp://localhost

obviously http://localhost traffic never goes through squid proxy at “server” unless you have explicitly defined the proxy in your browser.
So simply remove the proxy or add an exception in browser for localhost and 127.0.0.1

Advertisements

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: ,
Posted in browser

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

StackOverFlow
Categories
Archives
%d bloggers like this: