API stopped working, but only on one site?

24 views
Skip to first unread message

CombineGuy

unread,
Mar 5, 2012, 8:07:11 PM3/5/12
to Google AJAX APIs
Hi all,

I have an image slideshow that searches Google Images for a search
term using the API, and displays the search results in a slideshow.
This all of a sudden stopped working on my site the other day, and
nothing changed on my site as far as I know. If I take the code and
put it on another site (separate domain, separate host) that I have,
it works just fine. I have also seen it work one time since it
stopped working randomly so I doubt it has anything to do with my web
host - but I guess that is possible.

What could be going on? My site has had a huge increase in traffic
lately - could it be that I have been "metered" for hitting Google's
services too hard?

Please advise, and thank you.



Jeremy Geerdes

unread,
Mar 5, 2012, 8:17:42 PM3/5/12
to google-ajax...@googlegroups.com
There is a possibility that you could be hitting the throttling mechanisms, but it's highly unlikely if the slideshow is done client-side. Ultimately, though, it's impossible to even guess what may be going on without being able to see it in action. Could you provide a link to the page demonstrating the issue?

jg




--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en



--
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

CombineGuy

unread,
Mar 5, 2012, 8:25:04 PM3/5/12
to Google AJAX APIs
Sure, thanks for the quick response.

The link is: http://nflcombineresults.com/playerpage.php?f=Aaron&l=Rodgers&i=7240

The top left corner should display a slideshow of Google Image Search
results.

Thanks again.

On Mar 5, 7:17 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> There is a possibility that you could be hitting the throttling mechanisms,
> but it's highly unlikely if the slideshow is done client-side. Ultimately,
> though, it's impossible to even guess what may be going on without being
> able to see it in action. Could you provide a link to the page
> demonstrating the issue?
>
> jg
>

Jeremy Geerdes

unread,
Mar 5, 2012, 8:36:53 PM3/5/12
to google-ajax...@googlegroups.com
Well, the API seems to be responding appropriately for me. It's just that it's not returning any results. I got results by removing the +California bit, probably because you're missing a space (the query string is actually '"Adrian Rodgers"+California +football') OR because you're adding looking in Cali for a guy that is synonymous with Green Bay, WI! (If a Cheesehead found your site and saw that query...!)

On Mon, Mar 5, 2012 at 7:25 PM, CombineGuy <nflcombi...@gmail.com> wrote:
Sure, thanks for the quick response.

The link is:  http://nflcombineresults.com/playerpage.php?f=Aaron&l=Rodgers&i=7240

The top left corner should display a slideshow of Google Image Search
results

CombineGuy

unread,
Mar 5, 2012, 10:16:28 PM3/5/12
to Google AJAX APIs
Thanks, I'll check that out. I wonder what changed...

FWIW the California is because he went to college there and I'm
looking for the college images :)



On Mar 5, 7:36 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Well, the API seems to be responding appropriately for me. It's just that
> it's not returning any results. I got results by removing the +California
> bit, probably because you're missing a space (the query string is actually
> '"Adrian Rodgers"+California +football') OR because you're adding looking
> in Cali for a guy that is synonymous with Green Bay, WI! (If a Cheesehead
> found your site and saw that query...!)
>

CombineGuy

unread,
Mar 5, 2012, 10:29:57 PM3/5/12
to Google AJAX APIs
Strange... It doesn't work if I go straight to a page, but if I go to
the page (broken), click on another page (like Contact), then use the
back button it starts to work.

I should be able to figure it out from that alone but my brain is done
thinking for the day I guess.

CombineGuy

unread,
Mar 5, 2012, 10:34:21 PM3/5/12
to Google AJAX APIs
And it only works to use the Back button in IE and Chrome (not
Firefox)...

Hmmmm...

On Mar 5, 9:16 pm, CombineGuy <nflcombineresu...@gmail.com> wrote:

omr

unread,
Mar 6, 2012, 2:15:05 AM3/6/12
to google-ajax...@googlegroups.com

Please try this solution:

Edit the "giss.js" script, which is located at:

  http://nflcombineresults.com/giss.js

(Please archive a backup copy of the script before making changes.)

Find this line:

  query: $('#search-advanced-query').val(),

Modify that line as follows:

  query: $('#search-advanced-query').val().replace(/\s+/g, '+'),


-- omr

CombineGuy

unread,
Mar 14, 2012, 8:43:18 PM3/14/12
to Google AJAX APIs
Thank you very much for your time and suggestion omr.

I replaced the line in the giss.js script with the line provided by
you, but unfortunately it did not correct the problem for me.

The strange thing is that when moved to another domain, everything
seems to work properly.

On Mar 6, 2:15 am, omr <omr99...@yahoo.com> wrote:
> Please try this solution:
>
> Edit the "*giss.js*" script, which is located at:
Reply all
Reply to author
Forward
0 new messages