We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › using google api
Page Index Toggle Pages: 1
using google api (Read 2383 times)
using google api
Jun 14th, 2010, 3:49pm
I have been trying out the Google API for Processing (http://users.design.ucla.edu/%7Etatsuyas/) and not getting it to work. This is what I am getting. Maybe you have an idea why this is happening? How could I do it differently? Thanks for any answers!

searchBy: Processing

com.google.soap.search.GoogleSearchFault: [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html; charset=UTF-8", must be: "text/xml". Response was:

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>404 Not Found</title>
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
var rc=404;
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap>
<b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font>&nbsp;&nbsp;</b>
<tr><td bgcolor="#3366cc"><font face=arial,sans-serif color="#ffffff"><b>Error</b></td></tr>
<H1>Not Found</H1>
The requested URL <code>/search/beta2</code> was not found on this server.

<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor="#3366cc"><img alt="" width=1 height=4></td></tr></table>
     at com.google.soap.search.GoogleSearch.doSearch(GoogleSearch.java:164)
     at saito.google.Google.doQuery(Google.java:93)
     at saito.google.Google.run(Google.java:76)
     at java.lang.Thread.run(Thread.java:613)

make event

Disabling googleEvent() because of an error.
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
     at java.lang.reflect.Method.invoke(Method.java:585)
     at saito.google.Google.makeEvent(Google.java:163)
     at saito.google.Google.run(Google.java:78)
     at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NullPointerException
     at sketch_jun14a.googleEvent(sketch_jun14a.java:110)
     ... 7 more
Re: using google api
Reply #1 - Jun 15th, 2010, 2:04am
It's hard to help when you don't post any of your code.  The error seems straightforward however:  whatever web address at Google you're trying to access is returning a 404 not found...  So that would be the first thing to check.
Page Index Toggle Pages: 1