We filter out leading and trailing spaces - filter out internal spaces as well, or recognize it as invalid first.
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1096)
Caused by: java.lang.IllegalArgumentException: Illegal character in authority at index 12: http://First giving.campfirenow.com/users/me.json
at java.net.URI.create(URI.java:970)
at org.apache.http.client.methods.HttpGet.(HttpGet.java:75)
at campyre.java.CampfireRequest.get(CampfireRequest.java:57)
at campyre.java.Campfire.login(Campfire.java:30)
at campyre.android.Login$LoginTask.doInBackground(Login.java:199)
at campyre.android.Login$LoginTask.doInBackground(Login.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
We filter out leading and trailing spaces - filter out internal spaces as well, or recognize it as invalid first.
java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) at java.lang.Thread.run(Thread.java:1096) Caused by: java.lang.IllegalArgumentException: Illegal character in authority at index 12: http://First giving.campfirenow.com/users/me.json at java.net.URI.create(URI.java:970) at org.apache.http.client.methods.HttpGet.(HttpGet.java:75)
at campyre.java.CampfireRequest.get(CampfireRequest.java:57)
at campyre.java.Campfire.login(Campfire.java:30)
at campyre.android.Login$LoginTask.doInBackground(Login.java:199)
at campyre.android.Login$LoginTask.doInBackground(Login.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)