I see why you suspect the query length :)

In general, it's a good idea not to exceed ~2000chars
for any URL.  Some web server's contain limits to the
length of a GET.  Once you urlencode your example,
you easily have 2000+ characters.

That being said, in your example it looks like the Base
servers are giving the error and not your own browser/web server.
I don't know the max query length offhand, so I'll have to
get back to you.  Until then, try experiementing or
using the OR technique.

Cheers,
Eric

On Oct 19, 8:28 am, steve <[EMAIL PROTECTED]> wrote:
> I'll give the ORing a try within the next few weeks.
>
> I think the exception is coming from the query length being too long
> because GDataRequestException.ResponseString contains:
>
> <error type="request" reason="Google Base query too long"/>
>
> I'd like to know the maximum length so I can correctly handle that
> exception.
>
> Thanks
>
> On Oct 18, 6:20 pm, "Eric (Google)" <[EMAIL PROTECTED]> wrote:
>
> > Hi Steve,
>
> > What makes you think the exception is coming from the query
> > length being too long?  Is it possible that gigantic query is
> > malformed?
>
> > One thing you could try is ORing similar attributes together:
> > [make:TOYOTA%7CBMW]
>
> > See:http://groups.google.com/group/Google-Base-data-API/browse_thread/thr...
>
> > Eric
>
> > On Oct 17, 10:18 am, steve <[EMAIL PROTECTED]> wrote:
>
> > > What is the maximum length of GBaseQuery.GoogleBaseQuery?
>
> > > I can't seem to locate the maximum length in your documentation.
>
> > > I have a dynamically generated query which raises
> > > GDataRequestException when the length of my query is too long.
> > > However I don't know maximum length which is allowed.
>
> > > Smaller dynamically generated queries work just fine.
>
> > > Sample dynamically generated query which raises
> > > GDataRequestException.  This query is a list of midsize cars  for 2006
> > > which get at least 20 mpg combined (uses data derived from
> > > fueleconomy.gov).  I'm using the query inhttp://www.fecfs.com(fuel
> > > efficient cars for sale).
>
> > > "[year: 2006](([make:ACURA]([model:RL]|[model:TL]))|([make:AUDI]
> > > ([model:A6]|[model:A6 QUATTRO]|[model:A8]))|([make:BMW]([model:525I]|
> > > [model:525XI]|[model:530I]|[model:530XI]|[model:550I]))|([make:BUICK]
> > > ([model:LACROSSE/ALLURE]))|([make:CADILLAC]([model:CTS]|[model:STS]))|
> > > ([make:CHEVROLET]([model:EPICA]|[model:MALIBU]|[model:MONTE CARLO]))|
> > > ([make:CHRYSLER]([model:SEBRING 4-DR]))|([make:DODGE]([model:STRATUS 4-
> > > DR]))|([make:FORD]([model:FUSION]))|([make:HONDA]([model:ACCORD]))|
> > > ([make:HYUNDAI]([model:ELANTRA]))|([make:JAGUAR]([model:JAGUAR S-TYPE
> > > 3.0 LITRE]|[model:JAGUAR S-TYPE 4.2 LITRE]|[model:JAGUAR X-TYPE SPORT
> > > BRAKE]))|([make:KIA]([model:KIA OPTIMA(MS)]|[model:KIA SPECTRA(LD)]))|
> > > ([make:LEXUS]([model:ES 330]|[model:GS 300]|[model:GS 300/GS 430]))|
> > > ([make:LINCOLN-MERCURY]([model:LS]|[model:MILAN]|[model:ZEPHYR]))|
> > > ([make:MAZDA]([model:MAZDA 6]))|([make:MERCEDES-BENZ]([model:E320 CDI]|
> > > [model:E350]|[model:E350 4MATIC]|[model:E500]))|([make:MITSUBISHI]
> > > ([model:GALANT]))|([make:NISSAN]([model:ALTIMA]|[model:MAXIMA]))|
> > > ([make:PONTIAC]([model:GRAND PRIX]))|([make:SAAB]([model:9-5 SEDAN]))|
> > > ([make:SUZUKI]([model:VERONA]))|([make:TOYOTA]([model:CAMRY]|
> > > [model:PRIUS]))|([make:VOLKSWAGEN]([model:PASSAT]|[model:PASSAT
> > > 4MOTION]))|([make:VOLVO]([model:S80])))"- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to