aym / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

Book Bar Wizard's file 'no_cover_thumb.gif ' need absolute url #345

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.http://www.google.com/uds/solutions/wizards/bookbar.html

2.Orientation:horizontal 
Search Expression: Magazines, Literature, Science fiction, 
Fantasy,Romance, Mystery, Fairy tales,Short stories, Poetry, Poetry, 
Naturalists, Art    
Site URL:http://www.google-books.org 

3.Copy and paste code to my site

http://www.google.com/uds/solutions/wizards/bookbar.html?
uds_gen=1&uds_o=1&uds_se=Magazines%2CLiterature%2CScience%20fiction%
2CFantasy%2CRomance%2CMystery%2CFairy%20tales%2CShort%20stories%2CPoetry%
2CPoetry%2CNaturalists%2CArt&uds_su=http%3A%2F%2Fwww.google-
books.org&url=http://www.google-
books.org&key=ABQIAAAASMbRNbOBU0fc98I9FnkT0RTay46Gjb-
OLLifUrufF3ZpLCPcHBTgteF5MP7dmEmEhb8mDKl0LfaPZw

What is the expected output? What do you see instead?
My site runing at GAE,the Book Bar output mass 404 and 302 log:

      11-14 05:50PM 16.400 /googlebooks/images/no_cover_thumb.gif/ 404 
40ms 70cpu_ms 37api_cpu_ms 2kb Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-
CN; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5 (.NET CLR 3.5.30729),gzip
(gfe)
      See details

      119.53.44.39 - - [14/Nov/2009:17:50:16 -
0800] "GET /googlebooks/images/no_cover_thumb.gif/ HTTP/1.1" 404 
2494 "http://book-engine.appspot.com/" "Mozilla/5.0 (Windows; U; Windows 
NT 6.0; zh-CN; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5 (.NET CLR 
3.5.30729),gzip(gfe)"

      11-14 05:50PM 16.006 /googlebooks/images/no_cover_thumb.gif 302 43ms 
60cpu_ms 25api_cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; 
rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5 (.NET CLR 3.5.30729),gzip
(gfe)
      See details

      119.53.44.39 - - [14/Nov/2009:17:50:16 -
0800] "GET /googlebooks/images/no_cover_thumb.gif HTTP/1.1" 302 
174 "http://book-engine.appspot.com/" "Mozilla/5.0 (Windows; U; Windows NT 
6.0; zh-CN; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5 (.NET CLR 
3.5.30729),gzip(gfe)"

What version of the product are you using? On what operating system?

GAE

Please provide any additional information below.

I guess your code should use absolute url:
'http://books.google.com/googlebooks/images/no_cover_thumb.gif'

Thanks

Original issue reported on code.google.com by 287...@gmail.com on 15 Nov 2009 at 2:08

GoogleCodeExporter commented 8 years ago
I would like to see this fixed soon, as it is not nice to see a broken image on 
your
webpage.

Original comment by mong...@gmail.com on 17 Feb 2010 at 2:38

GoogleCodeExporter commented 8 years ago
I haven't yet been able to reproduce this issue. Could I see a page where you 
are 
seeing this behavior?

Original comment by jscud.w...@gmail.com on 17 Feb 2010 at 5:59

GoogleCodeExporter commented 8 years ago
j...
Here is a screenshot attached.
This site is on an intranet,behind a firewall, so you cannot surf to it.
The code is running on a Sharepoint page.

The bad image reference is on the second page of paged results ( 6th result in 
list)

executeList : ["bioconjugation", "bioconjugate chemistry"]

Original comment by mong...@gmail.com on 18 Feb 2010 at 7:51

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for the screenshot. Unfortunately, it doesn't really help us figure 
out
what's going on. Could you at least pastebin your code that we can test it for 
ourselves?

Original comment by jrgeer...@gmail.com on 18 Feb 2010 at 8:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
http://pastebin.com/embed_js.php?i=uk4bWcpj

Original comment by mong...@gmail.com on 4 Mar 2010 at 7:38

GoogleCodeExporter commented 8 years ago
Yup, have the same issue too.  Although temporarily you could always recreate 
the path on your own site and add in the thumbnail from google.  I started 
seeing the issue in my error logs when the books query tried searching for the 
no cover thumbnail in my own site.

Original comment by James.r....@gmail.com on 30 Jun 2010 at 10:44

GoogleCodeExporter commented 8 years ago
I am also getting this error in my AppEngine project. Example code is here: 
http://pastebin.com/CfYN6LEs.

A request to /googlebooks/images/no_cover_thumb.gif/ is definitely coming in to 
my handler. 

Original comment by gdaych...@gmail.com on 13 Oct 2010 at 1:45