summaryrefslogtreecommitdiffstats
path: root/archives/extend/2013-April/000119.html
blob: 0f58a6e7d3336b44a5b8c1008730c30365f85487 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] 505 error
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20505%20error&In-Reply-To=%3C5826B1C1-C80E-4073-953C-3BF74829CE1A%40gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000118.html">
   <LINK REL="Next"  HREF="000120.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] 505 error</H1>
    <B>Lee Sylvester</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20505%20error&In-Reply-To=%3C5826B1C1-C80E-4073-953C-3BF74829CE1A%40gmail.com%3E"
       TITLE="[99s-extend] 505 error">lee.sylvester at gmail.com
       </A><BR>
    <I>Mon Apr 22 20:30:08 CEST 2013</I>
    <P><UL>
        <LI>Previous message: <A HREF="000118.html">[99s-extend] 505 error
</A></li>
        <LI>Next message: <A HREF="000120.html">[99s-extend] 505 error
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#119">[ date ]</a>
              <a href="thread.html#119">[ thread ]</a>
              <a href="subject.html#119">[ subject ]</a>
              <a href="author.html#119">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Does this help?

Request URL:<A HREF="http://www.example.com">http://www.example.com</A>
Request Method:OPTIONS
Status Code:505 HTTP Version Not Supported

Request Headersview parsed
OPTIONS <A HREF="http://www.example.com">http://www.example.com</A> HTTP/1.1
Host: www.example.com
Proxy-Connection: keep-alive
Access-Control-Request-Method: POST
Origin: <A HREF="http://localhost">http://localhost</A>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Access-Control-Request-Headers: origin, method, content-type
Accept: */*
Referer: <A HREF="http://localhost/p/">http://localhost/p/</A>
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response Headersview parsed
HTTP/1.1 505 HTTP Version Not Supported
connection: close
server: Cowboy
date: Mon, 22 Apr 2013 17:42:39 GMT
content-length: 0

Thanks,
Lee


On 22 Apr 2013, at 16:55, &quot;Brown, Kevin&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">Kevin.Brown at turner.com</A>&gt; wrote:

&gt;<i> You might see if &quot;view source&quot; (rather than the parsed view you sent)
</I>&gt;<i> yields any clues.  You'd like to see HTTP version being sent.
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> On 4/22/13 10:40 AM, &quot;Lee Sylvester&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">lee.sylvester at gmail.com</A>&gt; wrote:
</I>&gt;<i> 
</I>&gt;&gt;<i> Well, the below is the sent and return headers on the failing machine.
</I>&gt;&gt;<i> On a succeeding machine, the headers are
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Request URL:<A HREF="http://www.example.com">http://www.example.com</A>
</I>&gt;&gt;<i> Request Method:OPTIONS
</I>&gt;&gt;<i> Status Code:200 OK
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Request Headersview source
</I>&gt;&gt;<i> Accept:*/*
</I>&gt;&gt;<i> Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
</I>&gt;&gt;<i> Accept-Encoding:gzip,deflate,sdch
</I>&gt;&gt;<i> Accept-Language:en-US,en;q=0.8
</I>&gt;&gt;<i> Access-Control-Request-Headers:origin, method, content-type
</I>&gt;&gt;<i> Access-Control-Request-Method:POST
</I>&gt;&gt;<i> Connection:keep-alive
</I>&gt;&gt;<i> Host:www.example.com
</I>&gt;&gt;<i> Origin:<A HREF="http://www.test.com">http://www.test.com</A>
</I>&gt;&gt;<i> Referer:<A HREF="http://www.test.com/">http://www.test.com/</A>
</I>&gt;&gt;<i> User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3)
</I>&gt;&gt;<i> AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Response Headersview source
</I>&gt;&gt;<i> Access-Control-Allow-Headers:Content-Type, X-Requested-With, Origin,
</I>&gt;&gt;<i> Method
</I>&gt;&gt;<i> Access-Control-Allow-Methods:GET, POST, OPTIONS
</I>&gt;&gt;<i> Access-Control-Allow-Origin:*
</I>&gt;&gt;<i> connection:keep-alive
</I>&gt;&gt;<i> content-length:68
</I>&gt;&gt;<i> date:Mon, 22 Apr 2013 14:33:30 GMT
</I>&gt;&gt;<i> server:Cowboy
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> As you can see, the header control and content isn't being sent back and
</I>&gt;&gt;<i> the connection is closed.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Thanks,
</I>&gt;&gt;<i> Lee
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> On 22 Apr 2013, at 15:28, &quot;Brown, Kevin&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">Kevin.Brown at turner.com</A>&gt; wrote:
</I>&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> What is the exact http request sent on the failing and successful
</I>&gt;&gt;&gt;<i> machines?  How do the differ?
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> Stack trace?
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> On Apr 22, 2013, at 9:00 AM, &quot;Lee Sylvester&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">lee.sylvester at gmail.com</A>&gt;
</I>&gt;&gt;&gt;<i> wrote:
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> Hi guys,
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> So, I was getting a CORS issue when connecting to my Bullet impl,
</I>&gt;&gt;&gt;&gt;<i> which I have since fixed.  I am now able to use these from many
</I>&gt;&gt;&gt;&gt;<i> machines from many locations.  However, I have found some machines to
</I>&gt;&gt;&gt;&gt;<i> be getting a 505 error when making a POST request to the Cowboy
</I>&gt;&gt;&gt;&gt;<i> instance:
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> Request URL:<A HREF="http://www.example.com">http://www.example.com</A>
</I>&gt;&gt;&gt;&gt;<i> Request Method:OPTIONS
</I>&gt;&gt;&gt;&gt;<i> Status Code:505 HTTP Version Not Supported
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> Request Headersview source
</I>&gt;&gt;&gt;&gt;<i> Accept:*/*
</I>&gt;&gt;&gt;&gt;<i> Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
</I>&gt;&gt;&gt;&gt;<i> Accept-Encoding:gzip,deflate,sdch
</I>&gt;&gt;&gt;&gt;<i> Accept-Language:en-US,en;q=0.8
</I>&gt;&gt;&gt;&gt;<i> Access-Control-Request-Headers:origin, method, content-type
</I>&gt;&gt;&gt;&gt;<i> Access-Control-Request-Method:POST
</I>&gt;&gt;&gt;&gt;<i> Connection:keep-alive
</I>&gt;&gt;&gt;&gt;<i> Host:www.example.com
</I>&gt;&gt;&gt;&gt;<i> Origin:<A HREF="http://www.test.com">http://www.test.com</A>
</I>&gt;&gt;&gt;&gt;<i> Referer:<A HREF="http://www.test.com/">http://www.test.com/</A>
</I>&gt;&gt;&gt;&gt;<i> User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31
</I>&gt;&gt;&gt;&gt;<i> (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> Response Headersview source
</I>&gt;&gt;&gt;&gt;<i> connection:close
</I>&gt;&gt;&gt;&gt;<i> content-length:0
</I>&gt;&gt;&gt;&gt;<i> date:Mon, 22 Apr 2013 12:22:50 GMT
</I>&gt;&gt;&gt;&gt;<i> server:Cowboy
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> To get around the CORS issue, I set up an onrequest hook, which points
</I>&gt;&gt;&gt;&gt;<i> to the function:
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> set_request_cors(Req) -&gt;
</I>&gt;&gt;&gt;&gt;<i>  Req2 = 
</I>&gt;&gt;&gt;&gt;<i> cowboy_req:set_resp_header(&lt;&lt;&quot;Access-Control-Allow-Methods&quot;&gt;&gt;, &lt;&lt;&quot;GET,
</I>&gt;&gt;&gt;&gt;<i> POST, OPTIONS&quot;&gt;&gt;, Req),
</I>&gt;&gt;&gt;&gt;<i>  Req3 = 
</I>&gt;&gt;&gt;&gt;<i> cowboy_req:set_resp_header(&lt;&lt;&quot;Access-Control-Allow-Headers&quot;&gt;&gt;,
</I>&gt;&gt;&gt;&gt;<i> &lt;&lt;&quot;Content-Type, X-Requested-With, Origin, Method&quot;&gt;&gt;, Req2),
</I>&gt;&gt;&gt;&gt;<i>  cowboy_req:set_resp_header(&lt;&lt;&quot;Access-Control-Allow-Origin&quot;&gt;&gt;,
</I>&gt;&gt;&gt;&gt;<i> &lt;&lt;&quot;*&quot;&gt;&gt;, Req3).
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> I'm afraid I don't have any more info, but this issue is completely
</I>&gt;&gt;&gt;&gt;<i> eluding me.
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> Thanks,
</I>&gt;&gt;&gt;&gt;<i> Lee
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;&gt;&gt;<i> Extend mailing list
</I>&gt;&gt;&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;&gt;&gt;&gt;<i> <A HREF="http://lists.ninenines.eu:81/listinfo/extend">http://lists.ninenines.eu:81/listinfo/extend</A>
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000118.html">[99s-extend] 505 error
</A></li>
	<LI>Next message: <A HREF="000120.html">[99s-extend] 505 error
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#119">[ date ]</a>
              <a href="thread.html#119">[ thread ]</a>
              <a href="subject.html#119">[ subject ]</a>
              <a href="author.html#119">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>