Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple example fails #34

Closed
wulftone opened this issue Jul 3, 2016 · 2 comments
Closed

Simple example fails #34

wulftone opened this issue Jul 3, 2016 · 2 comments

Comments

@wulftone
Copy link

wulftone commented Jul 3, 2016

This is taken straight from the documentation and it appears that map is not a valid method on a request, which seems silly, but there it is! Maybe it has to do with how I compiled the project (See #33)?

val client = featherbed.Client(new URL("http://localhost:8888/"))
// client: featherbed.Client = featherbed.Client@4a02fb3c

val req = client.get("")
// req: client.GetRequest[shapeless.:+:[String("*/*"),shapeless.CNil]] = GetRequest(http://localhost:8888/,List(),UTF-8)

val result = Await.result { req map { r => r.contentString } }
// <console>:15: error: value map is not a member of client.GetRequest[shapeless.:+:[String("*/*"),shapeless.CNil]]
//        val result = Await.result { req map { r => r.contentString } }
//                                        ^
@wulftone
Copy link
Author

wulftone commented Jul 3, 2016

I see now I was working with a newer version than the published docs are. The docs in the repo != docs on the web, but they still run into this same map missing error.

@wulftone wulftone closed this as completed Jul 3, 2016
@wulftone wulftone reopened this Jul 3, 2016
@ilya-murzinov
Copy link
Contributor

@wulftone seems now everything is ok, can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants