Skip to content

Instantly share code, notes, and snippets.

@kirkportas
Created January 23, 2015 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirkportas/c9fbbe08689a3b62bf85 to your computer and use it in GitHub Desktop.
Save kirkportas/c9fbbe08689a3b62bf85 to your computer and use it in GitHub Desktop.
Ecole demo error
During Signup, after entering an Address and clicking 'Continue', a 422 error is thrown. The network POST is below.
The session is opened though - so a new browser tab will be logged in.
==HEADERS==
Remote Address:10.213.3.230:8080
Request URL:http://104.130.23.90/signup/addresses
Request Method:POST
Status Code:422 Unprocessable Entity
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Content-Length:337
Content-Type:application/x-www-form-urlencoded
Cookie:guest_token=IlBiRWdXd0xKaFJtbS1VNmpFTEx0cUEi--6ceeae82c8f9874e5e586313406e2664bbff078d; _ecole_session=eyJzZXNzaW9uX2lkIjoiMWEwMDQ4YmI3ZWZmNTkxN2QzOGJmYTZjMzI3NGY3N2QiLCJfY3NyZl90b2tlbiI6InRMK1RxMGxud200Mkg2cExLem5qZnAxVG5jeGsrVDJOaU1MeUdiTzlSY2s9Iiwid2FyZGVuLnVzZXIuc3ByZWVfdXNlci5rZXkiOltbNF0sIkt5WnpNa2hpcEVGVWRKNXpmb1ZfIl0sInNwcmVlX3VzZXJfc2lnbnVwIjp0cnVlLCJmbGFzaCI6eyJkaXNjYXJkIjpbXSwiZmxhc2hlcyI6eyJub3RpY2UiOiJXZWxjb21lISBZb3UgaGF2ZSBzaWduZWQgdXAgc3VjY2Vzc2Z1bGx5LiJ9fX0%3D--4e8a98474eac276259beff9e4c8cc067094937ca
Host:104.130.23.90
Origin:http://104.130.23.90
Proxy-Connection:keep-alive
Referer:http://104.130.23.90/signup/addresses
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
Form Dataview sourceview URL encoded
utf8:✓
authenticity_token:tL+Tq0lnwm42H6pLKznjfp1Tncxk+T2NiMLyGbO9Rck=
address[nickname]:Home
address[firstname]:JohnDoe
address[lastname]:Test1
address[address1]:123 ABC St
address[address2]:Apt 1
address[city]:NYC
address[state_id]:3446
address[zipcode]:11106
address[phone]:5055101337
Response Headersview source
Connection:Keep-Alive
Content-Length:1547
Content-Type:text/html; charset=utf-8
Date:Fri, 23 Jan 2015 14:52:44 GMT
Proxy-Connection:Keep-Alive
Server:nginx/1.6.0
Status:422 Unprocessable Entity
X-Request-Id:72fcc326-17b6-448e-a1b6-e72c97796fab
X-Runtime:2.083733
==RESPONSE==
<!DOCTYPE html>
<html>
<head>
<title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}
div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 12% 0;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}
div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #999;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top-color: #DADADA;
color: #666;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
</style>
</head>
<body>
<!-- This file lives in public/422.html -->
<div class="dialog">
<div>
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
</div>
<p>If you are the application owner check the logs for more information.</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment