About AppEngineHttp

classic Classic list List threaded Threaded
3 messages Options
nyo
Reply | Threaded
Open this post in threaded view
|

About AppEngineHttp

nyo
Hi.

I'm trying to use dispatch-http-gae_2.8.0/0.8.0.Beta1.
I encountered the Exception when I executed below My code.
I think that the requestUrl looks like lack of colon.

val host = :/ ("localhost", 8888)
val http = new AppEngineHttp
var response: NodeSeq = Text("")
http(host / "api" / "test" << dto.toXml.toString <> {response = _})

-- stacktrace --
Message: java.io.IOException: Could not fetch URL: http://localhost8888/api/test
        com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java:106)
        com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:39)
        dispatch.gae.GAEClientConnection.flush(gae.scala:153)
        org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:251)
        org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
        org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:623)
        org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:455)
        org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:694)
        org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:650)
        dispatch.Http.execute(Http.scala:59)

So, I challenged as follows.
val host = :/ ("localhost:", 8888)

It worked.
I think that this is strange work.
Reply | Threaded
Open this post in threaded view
|

Re: About AppEngineHttp

n8han
Administrator
Looks like a bug. Could you log it here?
http://github.com/n8han/databinder-dispatch/issues

Nathan

On 09/25/2010 03:59 AM, nyo [via Databinder] wrote:
>
> -- stacktrace --
> Message: java.io.IOException: Could not fetch URL:
> http://localhost8888/api/test
>

nyo
Reply | Threaded
Open this post in threaded view
|

Re: About AppEngineHttp

nyo
I'm sorry for too late.
I wrote it.