I’m using URL Fetch Java API
http://code.google.com/appengine/docs/java/urlfetch/overview.html#Fet…
to get information from graph.facebook.com, however, i keep getting
the error:
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
…
Caused by: java.net.URISyntaxException: Illegal character in query at
index 58: https://graph.facebook.com/me?access_token=…
Any idea?
I’m using URL Fetch Java API http://code.google.com/appengine/docs/java/urlfetch/overview.html#Fet … to get information from graph.facebook.com, however,
Share
The error message pretty much says it all: the URI you are attempting to fetch contains an illegal character at index 58. I also get the exception with your URL:
throws:
The character at position 58 is the “|” character. You need to URL encode this character (and its other occurances).