Admin API shows 500 Internal Server Error

32 views
Skip to first unread message

Andy Wu

unread,
Dec 9, 2009, 1:17:55 AM12/9/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
I saw an earlier thread about the following GSA Admin API error when
trying to connect to a GSA:

---
HTTP/1.1 500 Internal Server Error
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 04 Sep 2009 09:51:00 GMT
Expires: Fri, 04 Sep 2009 09:51:00 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
Connection: keep-alive
Keep-Alive: timeout=7200

Internal Error
<p>You are getting this message because you have a Google IP address.
External clients only get "Internal Error"</p>
<pre>Server: ent1
Caller-Ip: 192.168.101.103
Request: /feeds/config/crawlURLs
Referer: null
User-Agent: php curl
Stack Trace:
java.lang.IllegalStateException: Authentication exception must contain
WWW-Authenticate header
---

I tried to respond to that message, but I don't see a link for reply,
so I am posting my solution in a new thread. I was able to resolve
this error by changing the GSA's timezone to US/Pacific. It is worth
a try if you see this error message.

rocky

unread,
Dec 23, 2009, 7:42:44 AM12/23/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
hi andy,

i've similar problem while trying to update any URL in collection:

Exception in thread "main" com.google.gdata.util.ServiceException:
Internal Server Error


Internal Error
<p>You are getting this message because you have a Google IP address.
External clients only get "Internal Error"</p>
<pre>Server: ent1

Caller-Ip: 10.11.12.13
Request: /feeds/collection/some_collection
Referer: null
User-Agent: gsa-api-client GData-Java/1.30.0(gzip)
Stack Trace:
java.lang.NullPointerException

at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(Unknown Source)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(Unknown Source)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(Unknown Source)
at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.Service.update(Unknown Source)
at com.google.gdata.client.Service.update(Unknown Source)
at com.google.gdata.client.GoogleService.update(Unknown Source)
at com.google.enterprise.apis.client.GsaClient.updateEntry(Unknown
Source)
at com.jpmc.gsa.api.CrawlUrl.main

My code:

// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
String entryUrl = "http://Search_Appliance:8000/feeds/
collection/some_collection";
updateEntry.setId(entryUrl);

// Add properties to updateEntry
updateEntry.addGsaContent("followURLs", "http://good/");

// Send the request
myClient.updateEntry("collection", "some_collection",
updateEntry);

thanks,
rocky

On Dec 9, 11:17 am, Andy Wu <andywu200...@gmail.com> wrote:
> I saw an earlier thread about the following GSA Admin API error when
> trying to connect to a GSA:
>
> ---
> HTTP/1.1 500 Internal Server Error
> Content-Type: text/html; charset=UTF-8
> Transfer-Encoding: chunked
> Date: Fri, 04 Sep 2009 09:51:00 GMT
> Expires: Fri, 04 Sep 2009 09:51:00 GMT
> Cache-Control: private, max-age=0
> X-Content-Type-Options: nosniff
> Connection: keep-alive
> Keep-Alive: timeout=7200
>
> Internal Error

> <p>YouaregettingthismessagebecauseyouhaveaGoogleIPaddress.Externalclientsonlyget"Internal Error"</p>


> <pre>Server: ent1
> Caller-Ip: 192.168.101.103
> Request: /feeds/config/crawlURLs
> Referer: null
> User-Agent: php curl
> Stack Trace:
> java.lang.IllegalStateException: Authentication exception must contain
> WWW-Authenticate header
> ---
>

> I tried to respond to thatmessage, but I don't see a link for reply,

Andy Wu

unread,
Dec 24, 2009, 7:47:29 PM12/24/09
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi, Rocky.

It looks like we are referring to different error messages here:

Mine: java.lang.IllegalStateException: Authentication exception must
contain WWW-Authenticate header

- vs -

Yours: java.lang.NullPointerException

Since the GSA is complaining about a missing field, I think you may
need to set both the include and exclude patterns like this:

updateEntry.addGsaContent("followURLs", "http://good/");

updateEntry.addGsaContent("doNotCrawlURLs", "http://frequent/");

Andy

Reply all
Reply to author
Forward
0 new messages