Hi Richard,

Can you please assemble together a simple reproducer (preferably one scala
file with no external dependencies except Akka) that we can use to look
into your problem, and also file an issue here:
https://github.com/akka/akka/issues

Thanks,
-Endre

On Sun, Sep 6, 2015 at 10:38 AM, Richard Grossman <richie...@gmail.com>
wrote:

> Any New on this I get the same problem
> here is my code
>
> def asyncHandler(request : HttpRequest) : Future[HttpResponse] = {
>     request match {
>       case HttpRequest(POST, Uri.Path("/rtb"), _, _, _) =>
>         val eee = Source.single(request).via(flowAsync).runWith(Sink.head)
>         println(s"return $eee")
>         eee
>     }
>   }
>
>
> I get http 200 ok from the server but not the actual response
> Any help
> Thanks
>
>
> On Monday, June 1, 2015 at 10:05:41 PM UTC+3, Dana Peele wrote:
>>
>> Hi,
>>
>> I'm running a simple http server:
>>
>> Http().bindAndHandle(routes, config.getString("http.interface"),
>> config.getInt("http.port"))
>>
>> Here is my routes object:
>>
>> val routes =
>>     get {
>>       path("reactive-inventory" / Segment) {
>>         sku =>
>>           //Send a callback to complete the response for this request to
>> a Receptionist
>>
>> completeWith[InventoryResponse](implicitly[ToResponseMarshaller[InventoryResponse]])
>> {
>>             completer: (InventoryResponse => Unit) =>
>>               receptionistRouter ! GetRequest(sku, completer)
>>           }
>>       }
>>     } ~
>>       put {
>>         path("reactive-inventory" / Segment / Segment) {
>>           (sku, quantity) =>
>>             //Send a callback to complete the response for this request
>> to a Receptionist
>>
>> completeWith[InventoryResponse](implicitly[ToResponseMarshaller[InventoryResponse]])
>> {
>>               completer: (InventoryResponse => Unit) =>
>>                 receptionistRouter ! PutRequest(sku, quantity.toInt,
>> completer)
>>             }
>>         }
>>       } ~ {
>>       complete {
>>         InventoryResponse(0, "", "", success = false, 0, "404- Route
>> unknown")
>>       }
>>     }
>>
>> And I'm seeing the following messages in my debug output:
>>
>> [DEBUG] [06/01/2015 14:14:57.022]
>> [ReactiveInventory-akka.actor.default-dispatcher-38]
>> [akka://ReactiveInventory/user/$a/flow-52168-3-publisherSource-prefixAndTail]
>> Cancelling
>> akka.stream.impl.MultiStreamOutputProcessor$SubstreamOutput@50715a30
>> (after: 5000 ms)
>>
>> Can someone please explain what is going on here and how (or if I need
>> to) correct this?
>>
>> Thanks!
>>
>> Dana
>>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to