0

Failed to create URL/ Bad host

The Pipe below has been running fine for the last six months. When I run it now it gives the included error message. I know the service http://lbs-ascl.oclc.org:8090/ has been offline due to maintenance on June 29th. However RSS from the service is working fine now again when I use it in my browser. How to get rid of the "bad host" error in Pipes now? Please advice.

Pipe Web Address: http://pipes.yahoo.com/pipes/pipe.info?_id=2b7ed0c4f9c7041a29cd6e6e5da2fa33

No pipe results for New titles ASC Leiden (subject heading).

This Pipe ran successfully but encountered some problems:

warning Failed to create URL for http://lbs-ascl.oclc.org:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS%21i5233%21tCameroon%21r1%21aY%21cN%241y%21t%5C9001%2BB%21cN%21r1%21aY%242y%21i6205%21t20140630%21cN%21r1%21aY%24q4%243y%21tKEY%2Bzaa%21cN%21r1%21aY.oY.vD.wD&SEARCHTEXT=S%2501%28trefwoord%2BASC%2B%28exact%29%29%2501Cameroon%2501%2501%2501Y%2501%2501%2502%2501%2501%255C9001%2BB%2501%2501%2501Y%2501%2501%2502%2501%28datum%2Bvan%2Binvoer%29%250120140630%2501%2501%2501Y%2501%2501%2502%2501%2501KEY%2Bzaa%2501%2501%2501Y%2501%2501%2502%26EDOC%3D3781940723%26COOKIE%3D:Bad host http://lbs-ascl.oclc.org:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS%21i5233%21tCameroon%21r1%21aY%21cN%241y%21t%5C9001%2BB%21cN%21r1%21aY%242y%21i6205%21t20140630%21cN%21r1%21aY%24q4%243y%21tKEY%2Bzaa%21cN%21r1%21aY.oY.vD.wD&SEARCHTEXT=S%2501%28trefwoord%2BASC%2B%28exact%29%29%2501Cameroon%2501%2501%2501Y%2501%2501%2502%2501%2501%255C9001%2BB%2501%2501%2501Y%2501%2501%2502%2501%28datum%2Bvan%2Binvoer%29%250120140630%2501%2501%2501Y%2501%2501%2502%2501%2501KEY%2Bzaa%2501%2501%2501Y%2501%2501%2502%26EDOC%3D3781940723%26COOKIE%3D

by
15 Replies
  • Hello,

    Could you provide some informations about this domain? Clearly your use of the API is quite opaque, it is difficult to state on anything. Could you provide a working feed so the url can be analysed?

    Also, the error message is "Warning: Failed to create URL", not "Error fetching [...]". so the error might be linked to the url-encoded request, encoding which should be left to pipes.

    Finally, you said there was a technical maintenance, maybe the API has changed?

    0
  • It's a library catalogue and the RSS-URL states a search phrase so that's why the URL-statement is so long.

    For example

    http://lbs-ascl.oclc.org:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS!i5233!tKenya!aY!cN$1y!i6205!t20140630!cN!aY$q3$2y!t\9001+AD!cN!aY.oY.vD.wD&SEARCHTEXT=S%01%28ASC+subject+heading+%28exact%29%29%01Kenya%01%01%01Y%01%01%02%01%28copy+date%29%0120140630%01%01%01Y%01%01%02%01%01\9001+AD%01%01%01Y%01%01%02&EDOC=2889364607&COOKIE=

    Should work fine in a browser and did in my Pipe until recently.

    I looked at the encoding/decoding issue but can't seem to trace the problem. I use a URL-builder and String builder and had some issues with encoding/decoding getting started but when it worked it was stable for the last half year. Has anything changed in Pipes there?

    I also pasted some URL's from the domain directly into a "Fetch Feed" in a test Pipe but then it gives the same error message, also with a "simple" RSS-URL from the same domain.

    Could it be Pipes now made this a "bad host" because their was no response for some time? (I have no clue whatsoever if that is possible, but maybe you do :))

    0
  • Sorry maybe the above URL doesn't work but this one should.

    http://lbs-ascl.oclc.org:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS!i5233!tCameroon!aY!cN$1y!i6205!t20140630!cN!aY$q3$2y!t\9001+B!cN!aY.oY.vD.wD&SEARCHTEXT=S%01%28ASC+subject+heading+%28exact%29%29%01Cameroon%01%01%01Y%01%01%02%01%28copy+date%29%0120140630%01%01%01Y%01%01%02%01%01\9001+B%01%01%01Y%01%01%02&EDOC=4274392486&COOKIE=

    I have also just noticed that Pipes turns the \ into something like this \ When I copy the URL it back into my browser the URL also works though

    http://lbs-ascl.oclc.org:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS!i5233!tCameroon!aY!cN$1y!i6205!t20140630!cN!aY$q3$2y!t\9001+B!cN!aY.oY.vD.wD&SEARCHTEXT=S%01%28ASC+subject+heading+%28exact%29%29%01Cameroon%01%01%01Y%01%01%02%01%28copy+date%29%0120140630%01%01%01Y%01%01%02%01%01\9001+B%01%01%01Y%01%01%02&EDOC=4274392486&COOKIE=

    0
  • Hmmm this forum also does some decoding. Anyhow the \ is turned into & # 92 ; (without the spaces) by the Fetch Feed module

    0
  • And in the URL's there should be some * but they also disappear when I post here

    0
  • that's because this forum uses markdown, eg it interprets some symbols as formatting marks. Frame the url with ` to keep it from being interpreted.

    I tried the URL, I get an empty feed. I think the first step would be to turn back the url-encoded symbols to what they are. This means looking up every % followed by numbers in a table like W3C's or using a decoder like this website. For the last URL provided it gives

    <http://lbs-ascl.oclc.org>:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS!i5233!tCameroon!aY!cN$1y!i6205!t20140630!cN!aY$q3$2y!t\9001+B!cN!aY.oY.vD.wD&SEARCHTEXT=S(ASC+subject+heading+(exact))CameroonY(copy+date)20140630Y\9001+BY&EDOC=4274392486&COOKIE;=

    which still gives "bad host" errors and empty rss feed. Send the url back without formatting, that would probably help ;)

    0
  • (one of) the pipe being debugged: http://pipes.yahoo.com/pipes/pipe.edit?_id=111e5a340aeb61db9b693ade0b77a47e (it's annoying to have to go several layer deep to find the problem...)

    what about the webpage, eg the documentation, associated with the catalogue? Seeing the URL I'm guessing it didn't just popped out of your hat, so there must be some documentation (hopefully, a helpful one) around?

    0
  • See if I can get a correct URL across:

    'http://lbs-ascl.oclc.org:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS!i5233!tCameroon!aY!cN$1y!i6205!t20140630!cN!aY$2y!t\9001+B!cN!aY$q4$3y!tKEY+za!cN!aY.oY.vD.wD&SEARCHTEXT=S%01%28ASC+subject+heading+%28exact%29%29%01Cameroon%01%01%01Y%01%01%02%01%28copy+date%29%0120140630%01%01%01Y%01%01%02%01%01\9001+B%01%01%01Y%01%01%02%01%01KEY+za%01%01%01Y%01%01%02&EDOC=2705308634&COOKIE='

    This is how it turns up when the feed is created, so half decoded/ half encoded?, from the catalogue at 'http://opc-ascl.oclc.org:1080/DB=3/LNG=EN/' I don't think there is much useful documentation, it took me a while to get the proper URL's for what I wanted, maybe under "HELP"

    0
  • I can't get a correct URL across, in the line breaks it leaves out bits...

    0
  • <http://lbs-ascl.oclc.org>:8090/psi_rss/rss_feeds.php?DB=3&SEARCH=00yS!i5233!tCameroon!aY!cN$1y*!t\9001+B!cN!aY$2y*!i6205!t20140630!cN!aY$q4$3y*!tKEY+za!cN!aY.oY.vD.wD&SEARCHTEXT=S(ASC+subject+heading+(exact))CameroonY*\9001+BY*(copy+date)20140630Y*KEY+zaY&EDOC=4214582401&COOKIE

    0
  • After Y$ and before SEARCHTEXT (and leave out the quotes :))

    q4$3y*!tKEY+za!cN!aY.oY.vD.wD&

    0
  • Oh but now I see when you copy it you get the full URL, only take out the > after org

    0
  • I ran your url through W3C's feed validator: here

    As you can see, it's a pretty horrible feed. The worst of it is that the link which should reference itself does not. Instead it redirects to some weird document (eg, not a rss valid one).

    My guess is that the source you are trying to fetch still is in maintenance / modifying their API. wait and see, or e-mail them?

    0
  • I am still hoping the trouble might "go away" and is having to do with the maintenance. Thank you for your help so far, I will let you know via here what happens and/ or if I could use some more help.

    Thanks very very much anyway!!!

    0
  • Hello,

    I might have a new solution to your problem: use google scripts to "proxy" the feed. You clearly cannot use feedburner as your source url depend on the query. However, I just began to use google scripts, and I see there a formidable potential. Basically, this service host the execution of javascripts, acting like a server-side client. If it is possible to parse a GET url, or provide arguments in some way, you can use those to build the url, and fetch the feed which is then poured into pipes. I'm willing to work with you on the subject if you're interested!

    Best

    0

Recent Posts

in Pipes