Intermittent 404 on Bibla.com/scan and /tag functions

Page 1 of 1 (1 items)
This post has 0 Replies | 1 Follower

Posts 3
Michael Hollinger | Forum Activity | Posted: Mon, Feb 24 2014 11:58 AM

I am writing a script that will examine text for biblical references, and then harvest them in a database. I'm finding that in most cases, the [SCAN](http://api.biblia.com/docs/Bible_Scan) api function gives me what I need - but in several instances, it is giving me a 404.

I've ruled out the length - I'm chunking the calls into 1800 characters at a time

I've ruled out the server, because it is consistently either accepting or rejecting the same url calls.

I've ruled out passing text that contains no references.

Why does the API function return 404 ever?

{'cookies': <<class 'requests.cookies.RequestsCookieJar'>[]>, '_content': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>\r\n<title>404 - File or directory not found.</title>\r\n<style type="text/css">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id="header"><h1>Server Error</h1></div>\r\n<div id="content">\r\n <div class="content-container"><fieldset>\r\n  <h2>404 - File or directory not found.</h2>\r\n  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n', 'headers': CaseInsensitiveDict({'content-length': '741', 'content-encoding': 'gzip', 'vary': 'Accept-Encoding', 'connection': 'Keep-Alive', 'date': 'Mon, 24 Feb 2014 19:47:47 GMT', 'access-control-allow-origin': '*', 'access-control-allow-headers': 'X-Requested-With', 'content-type': 'text/html'}), 'url': u'http://api.biblia.com/v1/bible/scan/?text=%3Cp%3EWhen+Jesus+replied+that%3B+he+was+speaking+from+his+human+standpoint.+%3C%2Fp%3E%0A%0A%3Cp%3EThe+true+significance+of+the+death+and+resurrection+of+Jesus+is+that+he+sacrificed+his+human+life+on+the+cross+and+then+took+up+that+human+life+again.+That+is+the+proof+that+God+has+the+power+over+life+and+death.%3C%2Fp%3E%0A%0A%3Cp%3EUnless+Jesus+could+die+physically+and+take+up+that+physical+life+again%2C+where+would+our+assurance+that+he+can+offer+us+victory+over+death.%3C%2Fp%3E%0A%0A%3Cp%3ERemember+that+God+told+Adam%3B%3C%2Fp%3E%0A%0A%3Cblockquote%3E%0A++%3Cp%3EGenesis+3%3A19++KJV++In+the+sweat+of+thy+face+shalt+thou+eat+bread%2C+till+thou+return+unto+the+ground%3B+for+out+of+it+wast+thou+taken%3A+for+dust+thou+art%2C+and+unto+dust+shalt+thou+return.%3C%2Fp%3E%0A%3C%2Fblockquote%3E%0A%0A%3Cp%3EThe+Jesus+who+made+that+statement+was+in+his+resurrection+body%2C+and+that+body+just+as+yours+and+mine+has+an+eternal+purpose%2C+and+so+Jesus+had+to+ascend+to+heaven+and+to+his+God+who+is+the+same+as+our+God.%3C%2Fp%3E%0A%0A%3Cp%3ERemember+that+%3Cstrong%3EAll+the+sins+of+the+World%2C+were+placed+on+Jesus+on+the+Cross%3C%2Fstrong%3E.+Therefore+the+body+which+was+resurrected+would+not+be+free+of+sin+until+those+sins+were+wiped+away+by+God+the+father.+These+Scripture+may+help+you+to+understand.%3C%2Fp%3E%0A%0A%3Cblockquote%3E%0A++%3Cp%3E1st+Corinthians+15%3A51++Behold%2C+I+shew+you+a+mystery%3B+We+shall+not+all+sleep%2C+but+we+shall+all+be+changed%2C+%3C%2Fp%3E%0A++%0A++%3Cp%3E2nd+Corinthians+3%3A18++But+we+all%2C+with+open+face+beholding+as+in+a+glass+the+glory+of+the+Lord%2C+are+changed+into+the+same+image+from+glory+to+glory%2C+even+as+by+the+Spirit+of+the+Lord.+%3C%2Fp%3E%0A%3C%2Fblockquote%3E%0A%0A%3Cp%3EJesus+resurrection+body%2C+just+as+ours+will+be+much+different+from+our+Earthly+bodies%3A%3C%2Fp%3E%0A%0A%3Cp%3E1st+John+3%3A2++Beloved%2C+now+are+we+the+sons+of+God%2C+and+it+doth+not+yet+appear+what+we+shall+be%3A+but+we+know+that%2C+when+he+shall+appear%2C+we+shall+be+like+him%3B+for+we+shall+see+him+as+he&key=XXXXXXXXX', 'status_code': 404, '_content_consumed': True, 'encoding': 'ISO-8859-1', 'request': <PreparedRequest [GET]>, 'connection': <requests.adapters.HTTPAdapter object at 0x10136b990>, 'elapsed': datetime.timedelta(0, 0, 162286), 'raw': <requests.packages.urllib3.response.HTTPResponse object at 0x10136bf10>, 'reason': 'Not Found', 'history': []}

Page 1 of 1 (1 items) | RSS
Copyright 1992-2015 Faithlife / Logos Bible Software.