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

Basic example doesn't work #15

Open
wbprice opened this issue Jan 12, 2017 · 1 comment
Open

Basic example doesn't work #15

wbprice opened this issue Jan 12, 2017 · 1 comment

Comments

@wbprice
Copy link

wbprice commented Jan 12, 2017

When trying the Levee Basic Example, the following error gets thrown.

Williams-MacBook-Pro:levee-basic-example blaine$ node index.js
/Users/blaine/Documents/node_modules/wreck/lib/index.js:474
    return this._shortcutWrap('GET', uri, options, callback);
                ^

TypeError: this._shortcutWrap is not a function
    at Object.internals.Client.get [as execute] (/Users/blaine/Documents/node_modules/wreck/lib/index.js:474:17)
    at zalgo (/Users/blaine/Documents/node_modules/levee/lib/zalgo.js:28:12)
    at Breaker._run (/Users/blaine/Documents/node_modules/levee/lib/breaker.js:125:13)
    at Breaker.run (/Users/blaine/Documents/node_modules/levee/lib/breaker.js:60:15)
    at Object.<anonymous> (/Users/blaine/Documents/levee-basic-example/index.js:21:9)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

I made a quick repo to demonstrate: https://github.com/wbprice/levee-basic-example

blaine$ node -v
v6.9.1

Update: Seems to be an issue with Wreck. I was playing with examples/http.js and it worked using the version of Wreck that comes with Levee, but failed when updating Wreck to the latest version.

@wbprice wbprice changed the title Basic example doesn't work: Basic example doesn't work Jan 12, 2017
@tlivings
Copy link
Contributor

If you need a bound function you can pass Levee a bound function.

Since apparently Wreck has made breaking changes, this example should be updated.

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

2 participants