tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/17058-google-cse-randomly-quits-workingCascade CMS: Discussion 2018-10-18T20:37:03Ztag:help-archives.hannonhill.com,2010-02-09:Comment/309813742014-01-09T19:13:06Z2014-01-09T19:13:06ZGoogle cse randomly quits working<div><p>Hi Tim,</p>
<p>When attempting to search, I am seeing the following JavaScript
error coming from Google's end:</p>
<pre>
<code>Uncaught TypeError: Cannot read property 'hb' of undefined default+en.I.js:448</code>
</pre>
<p>I'm not sure if this is related to your issue, but according to
the <a href="https://developers.google.com/web-search/docs/">Web
Search API docs</a> the API has been deprecated since November 2010
in favor of Custom Search.</p>
<p>Aside from the JS error and deprecation, the HTML produced by
Cascade seems ok, as well as your custom-search.js file.</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/309813742014-01-09T19:42:59Z2014-01-09T19:42:59ZGoogle cse randomly quits working<div><p>Hi Ryan,</p>
<p>Thanks for the reply. So you would suggest making a new version
of Google’s CSE?</p></div>tfinktag:help-archives.hannonhill.com,2010-02-09:Comment/309813742014-01-10T13:44:25Z2014-01-10T13:44:25ZGoogle cse randomly quits working<div><p>Hi Tim,</p>
<p>Not a problem at all, my apologies for not having a
straightforward answer for you since this isn't really a Cascade
Server issue.</p>
<blockquote>
<p>So you would suggest making a new version of Google’s
CSE?</p>
</blockquote>
<p>If you are using the deprecated Web Search API, it might not
hurt to consider switching over to the newer APIs and see if that
helps, as a bonus you may even be able to take advantage of any
newer features they might provide. I also noticed you are using
that search control, which may or may not be available when you
make the switch.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/309813742014-01-10T13:57:06Z2014-01-10T13:57:06ZGoogle cse randomly quits working<div><p>Hi Ryan,</p>
<p>Thanks again for the info. I’m sorry to bother you with a
non Cascade Server issue. I figured that since a full publish fixed
this in the past, that maybe it was. I guess it was just a
coincidence. I’ll use the new API and see if that fixes
it.</p>
<p>Thanks again,</p>
<p>Tim</p></div>tfinktag:help-archives.hannonhill.com,2010-02-09:Comment/309813742014-01-10T14:59:12Z2014-01-10T14:59:12ZGoogle cse randomly quits working<div><p>Not a problem at all, Tim.</p>
<p>Reading over that deprecation message on the API docs, it
mentions they were limiting requests, so I'm curious if perhaps you
were hitting your rate limit (or getting close to it) and that
caused the results to work randomly. Since it's not working at all,
it could be possible you have gone over the limit entirely.</p>
<p>Definitely give the newer APIs a try and let us know if you have
any issues integrating them.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/309813742014-01-10T15:01:41Z2014-01-10T15:01:41ZGoogle cse randomly quits working<div><p>Hi Ryan,</p>
<p>I just want to give you a quick update. I integrated the new API
and it is working great.</p>
<p>Thanks again,</p>
<p>Tim</p></div>tfink