[opensuse-buildservice] cant connect to api.opensuse.org ?
hello, cant connect to https://api.opensuse.org/public anymore... ? site says 404 ? (from two different locations, home and work...) rens -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 26.06.2014 13:19, rens wrote:
hello,
cant connect to https://api.opensuse.org/public anymore... ?
site says 404 ?
(from two different locations, home and work...)
If you see a 404, you connected and got the correct error: this page just doesn't exist - and don't try with HTML browsers but with XML clients. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thursday 2014-06-26 13:28, Stephan Kulow wrote:
On 26.06.2014 13:19, rens wrote:
hello,
cant connect to https://api.opensuse.org/public anymore... ?
site says 404 ?
(from two different locations, home and work...)
If you see a 404, you connected and got the correct error: this page just doesn't exist - and don't try with HTML browsers but with XML clients.
Together with the 404 status code, the page text should give exactly this information: "use the XML client (like osc), not a browser". Or perhaps just give 200, because the URI does exist in at least some views. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
No, that's the one I expected, but it gives something else: 404: not found, and the famous pic with the factory in flames + a firebrigade guy. I am asking because my repository choice is now all of a sudden reduced to kiwi only. On 06/26/14 13:36, Jan Engelhardt wrote:
On Thursday 2014-06-26 13:28, Stephan Kulow wrote:
On 26.06.2014 13:19, rens wrote:
hello,
cant connect to https://api.opensuse.org/public anymore... ?
site says 404 ?
(from two different locations, home and work...)
If you see a 404, you connected and got the correct error: this page just doesn't exist - and don't try with HTML browsers but with XML clients. Together with the 404 status code, the page text should give exactly this information: "use the XML client (like osc), not a browser". Or perhaps just give 200, because the URI does exist in at least some views.
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hey, On 26.06.2014 13:43, rens wrote:
No, that's the one I expected, but it gives something else:
404: not found, and the famous pic with the factory in flames + a firebrigade guy.
Since the merge of the OBS API and WebUI it's important what you request from the application. A browser by default requests 'html'. And if there is no 'html' representation for the URL you request, it throws a 404. Open these in your browser to see the difference: https://api.opensuse.org/about => 404 https://api.opensuse.org/about?format=xml => XML
I am asking because my repository choice is now all of a sudden reduced to kiwi only.
Your repository choice where? Your own OBS? Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
sorry guys, to have bothered you. genius network guys at this end at work again..... which coincided with hicups at my home internet provider.... i wish they went for a holiday........... again, sorry rens On 06/26/14 14:31, Henne Vogelsang wrote:
Hey,
On 26.06.2014 13:43, rens wrote:
No, that's the one I expected, but it gives something else:
404: not found, and the famous pic with the factory in flames + a firebrigade guy. Since the merge of the OBS API and WebUI it's important what you request from the application. A browser by default requests 'html'. And if there is no 'html' representation for the URL you request, it throws a 404. Open these in your browser to see the difference:
https://api.opensuse.org/about => 404 https://api.opensuse.org/about?format=xml => XML
I am asking because my repository choice is now all of a sudden reduced to kiwi only. Your repository choice where? Your own OBS?
Henne
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
# hvogel@opensuse.org / 2014-06-26 14:31:05 +0200:
https://api.opensuse.org/about => 404 https://api.opensuse.org/about?format=xml => XML
that's quite an abuse of the HTTP protocol. first, the entity is the same (/about) in both requests, the lack of a query string leading to 404 is wrong. second, there's 406 exactly for this situation, so why not use it? you might have saved yourselves this email thread. -- roman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hey, On 26.06.2014 16:17, Roman Neuhauser wrote:
# hvogel@opensuse.org / 2014-06-26 14:31:05 +0200:
https://api.opensuse.org/about => 404 https://api.opensuse.org/about?format=xml => XML
that's quite an abuse of the HTTP protocol.
Tout au contraire :-) You might want to read up on HTTP/1.1 Accept request-header fields. RFC 2616, Section 14.1... Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
hello Henne! # hvogel@opensuse.org / 2014-06-27 11:23:46 +0200:
On 26.06.2014 16:17, Roman Neuhauser wrote:
# hvogel@opensuse.org / 2014-06-26 14:31:05 +0200:
https://api.opensuse.org/about => 404 https://api.opensuse.org/about?format=xml => XML
that's quite an abuse of the HTTP protocol.
Tout au contraire :-) You might want to read up on HTTP/1.1 Accept request-header fields. RFC 2616, Section 14.1...
that's 14.1 Accept, description of the Accept request header. AFAICT it does not contradict my position at all. of course, 406 would be inappropriate given that the client already abuses query string to emulate the Accept header; it should not. -- roman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hey, On 27.06.2014 14:03, Roman Neuhauser wrote:
# hvogel@opensuse.org / 2014-06-27 11:23:46 +0200:
On 26.06.2014 16:17, Roman Neuhauser wrote:
# hvogel@opensuse.org / 2014-06-26 14:31:05 +0200:
https://api.opensuse.org/about => 404 https://api.opensuse.org/about?format=xml => XML
that's quite an abuse of the HTTP protocol.
Tout au contraire :-) You might want to read up on HTTP/1.1 Accept request-header fields. RFC 2616, Section 14.1...
that's 14.1 Accept, description of the Accept request header. AFAICT it does not contradict my position at all. of course, 406 would be inappropriate given that the client already abuses query string to emulate the Accept header; it should not.
Ah now I get what you are saying. Sorry, I was a bit slow there, thinking you talk about the general implementation. Yes passing params[:format] is a gross rails hack, don't tell anyone about it ;-) Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 26.06.2014 13:36, Jan Engelhardt wrote:
On Thursday 2014-06-26 13:28, Stephan Kulow wrote:
Together with the 404 status code, the page text should give exactly this information: "use the XML client (like osc), not a browser". Or perhaps just give 200, because the URI does exist in at least some views.
https://github.com/openSUSE/open-build-service/fork Greetings, Stephan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 6/26/2014 7:49 AM, Stephan Kulow wrote:
On 26.06.2014 13:36, Jan Engelhardt wrote:
On Thursday 2014-06-26 13:28, Stephan Kulow wrote:
Together with the 404 status code, the page text should give exactly this information: "use the XML client (like osc), not a browser". Or perhaps just give 200, because the URI does exist in at least some views.
https://github.com/openSUSE/open-build-service/fork
Greetings, Stephan
Wow. Is someone overdue for a holiday? -- bkw -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (6)
-
Brian K. White
-
Henne Vogelsang
-
Jan Engelhardt
-
rens
-
Roman Neuhauser
-
Stephan Kulow