I meant to say - try escaping the URI.

On Thu, Jun 17, 2010 at 9:33 AM, Ikai Lan <[email protected]> wrote:

> This looks like a clue:
>
>
> On Wed, Jun 16, 2010 at 10:07 PM, brianl <[email protected]> wrote:
>
>> A URL Fetch of a Google chart fails.   Attempting w/ the low level API
>> in the development environment...
>>
>> String chart = "http://chart.apis.google.com/chart?chs=250x100&chd=t:
>> 60,40&cht=p3&chl=Hello|World";
>> FetchOptions options =
>> FetchOptions.Builder.disallowTruncate().followRedirects();
>> HTTPRequest request = new HTTPRequest(new URL(chart), HTTPMethod.GET,
>> options);
>> HTTPResponse response =
>> URLFetchServiceFactory.getURLFetchService().fetch(request);
>>
>>     [java] java.lang.IllegalArgumentException: Invalid uri 'http://
>> chart.apis.google.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello|<http://chart.apis.google.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello%7C>
>> World': Invalid query
>>     [java]     at
>> org.apache.commons.httpclient.HttpMethodBase.<init>(Unknown Source)
>>     [java]     at
>> org.apache.commons.httpclient.methods.GetMethod.<init>(Unknown Source)
>>
>>
>> What am I'm missing?   Or perhaps this is a known issue or
>> limitation?
>>
>> thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-appengine-java%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog: http://googleappengine.blogspot.com
> Twitter: http://twitter.com/app_engine
> Reddit: http://www.reddit.com/r/appengine
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.

Reply via email to