httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

GET endpoint occasionally not returning correct of HTTP vs. HTTPS

Open designatednerd opened this issue 4 years ago • 2 comments

This seems to have been introduced in the last couple days1 - I had a bunch of tests start failing from it: When hitting https://httpbin.org/get?index=13, the url returned in the JSON data is returned as "url": "http://httpbin.org/get?index=13"

I'm hitting https://httpbin.org/get?index=x from 1-20 in close succession, and it's sometimes passing on every one, sometimes failing on every one, and sometimes doing a random combination of passing and failing. Not sure how that's calculated but something's gone a bit haywire.

Here's a full JSON response from a recent run, with my IP address redacted:

{
	"args": {
		"index": "13"
	},
	"headers": {
		"Accept": "*/*",
		"Accept-Encoding": "gzip, deflate, br",
		"Accept-Language": "en-us",
		"Content-Length": "0",
		"Host": "httpbin.org",
		"User-Agent": "xctest/16091 CFNetwork/1126 Darwin/19.5.0 (x86_64)",
		"X-Amzn-Trace-Id": "Root=1-5ee97853-9546fa15e0e19239464c1f72",
		"X-B3-Parentspanid": "dbd7b85a679f1579",
		"X-B3-Sampled": "0",
		"X-B3-Spanid": "f584cbbb0edd5838",
		"X-B3-Traceid": "fed09d029171c79cdbd7b85a679f1579",
		"X-Envoy-External-Address": "10.100.91.201",
		"X-Forwarded-Client-Cert": "By=spiffe://cluster.local/ns/httpbin-istio/sa/httpbin;Hash=0b8630be57de2dbfe58ec055af9bc2b5a3b836211fe15f10d4b3147739d16182;Subject=\"\";URI=spiffe://cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account"
	},
	"origin": "[redacted]",
	"url": "http://httpbin.org/get?index=13"
}

1 EDIT: OK this repo hasn't been updated in 2 years, so it's gotta be something underlying on the image being used to run the httpbin.org site.

designatednerd avatar Jun 17 '20 02:06 designatednerd

Are you getting a 413 on failures? I think it could be related to https://github.com/postmanlabs/httpbin/issues/614 .

workmanw avatar Jun 17 '20 13:06 workmanw

Related to #613

overcat avatar Jun 20 '20 07:06 overcat