[akka-user][deprecated] Re: akka-http: Request was rejected

2018-11-21 Thread Josep Prat
Hi there,

If you paste the route code and the test, we will be able to help you out. 
You can also post this question on https://discuss.lightbend.com/ (which is 
the new place to discuss such issues).

Best!

On Wednesday, November 21, 2018 at 1:54:58 PM UTC+1, bhna bhna wrote:
>
> Hi akka http users, 
>
> I am developing a rest service in akka http. Even though there exists a 
> matching path/route for the HTTP Verb in the ABCRoutes.scala, the 
> corresponding unit test fails with an error: Request was Rejected(no other 
> error details). What are usual reasons for this error pls? 
> are there any akka http specific scalac options I can add in build.sbt , 
> to make the above error more verbose pls?
>
> Thanks much
>

-- 
*
** New discussion forum: https://discuss.akka.io/ replacing akka-user 
google-group soon.
** This group will soon be put into read-only mode, and replaced by 
discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*
>> 
>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Re: I'm a freshman to Akka, please recommend me some useful learning material... Thanks a lot.

2017-01-19 Thread Josep Prat
As former participant of that course, I think they would be a great 
addition to the current documentation assets. But I'm still interested in 
what the OP thinks it would improve a freshman experience.

Best,
Josep

On Thursday, January 19, 2017 at 8:59:53 PM UTC+1, rkuhn wrote:
>
> While “terrible” is pretty strong wording I think it is fair to say that 
> Akka has very good reference documentation but its initial learning 
> experience can be improved. Would it help if some of the video courses were 
> available (for free, of course) that were part of Principles of Reactive 
> Programming?
>
> Regards, Roland 
>
> Sent from my iPhone
>
> On 19 Jan 2017, at 20:41, Josep Prat <jlp...@gmail.com > 
> wrote:
>
> Welcome to Akka!
> As Lutz already said, I would recommend "Akka in Action". The only catch 
> is that the code is mainly in Scala.
> I have a question though, why do you say the official documentation is 
> terrible? I personally find Akka docs quite good. What would you change/add 
> to the current ones?
>
> Best,
> Josep
>
> On Thursday, January 19, 2017 at 2:34:29 PM UTC+1, Qian Liu wrote:
>>
>> Hello everybody,
>>
>> I'm new-comer to Akka, the official documents for Akka learning is 
>> terrible. not very well structured. Beginners will soon feel lost with 
>> these official documents. Do you know any better resources to learn? I'm a 
>> java developer.
>>
>> Thanks a lot.
>>
>> Best regards,
>>
>> Qian Liu
>>
> -- 
> >>>>>>>>>> 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+...@googlegroups.com .
> To post to this group, send email to akka...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
>>>>>>>>>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: I'm a freshman to Akka, please recommend me some useful learning material... Thanks a lot.

2017-01-19 Thread Josep Prat
Welcome to Akka!
As Lutz already said, I would recommend "Akka in Action". The only catch is 
that the code is mainly in Scala.
I have a question though, why do you say the official documentation is 
terrible? I personally find Akka docs quite good. What would you change/add 
to the current ones?

Best,
Josep

On Thursday, January 19, 2017 at 2:34:29 PM UTC+1, Qian Liu wrote:
>
> Hello everybody,
>
> I'm new-comer to Akka, the official documents for Akka learning is 
> terrible. not very well structured. Beginners will soon feel lost with 
> these official documents. Do you know any better resources to learn? I'm a 
> java developer.
>
> Thanks a lot.
>
> Best regards,
>
> Qian Liu
>

-- 
>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Convert CompletionStage Type

2016-10-04 Thread Josep Prat
This is what I did in one of the projects:

PatternsCS.ask(myActor, new MyActor.RetrieveFromUser(userId), 500)
 .thenApply(OpenDuelActor.Answer.class::cast)
 .thenApply(OpenDuelActor.Answer::getContent);

Hope it's useful

On Monday, October 3, 2016 at 10:56:00 PM UTC+2, jpste...@skydance.com 
wrote:
>
> I looked for that but CompletionStage doesn't have a map method. At least 
> not in the Java8 version of java.util.concurrent.CompletionStage.
>
> On Monday, October 3, 2016 at 10:41:23 AM UTC-7, Josep Prat wrote:
>>
>> It's not very stylish, but you can call map on the CompletionStage doing 
>> a cast to the desired class
>
>

-- 
>>>>>>>>>>  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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.