assaf/zombie — Issue #253: Basic Auth options parsing
Author: Acek
Created: 2012-01-05 21:52:11+00:00
State: open

Hi,

I wanted to try the basic auth func added in https://github.com/assaf/zombie/pull/202.
But it gives following error. (also when I simply use the code given in the 202 pull request)
I shortly gave it a look and apparantly it fails at parsing the options correctly for the credentials and @credentials.scheme is undefined.

setup:
node: v 0.6.6
npm 1-1-0-beta-4
zombie: latest through "npm install zombie"

error message:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'toLowerCase' of undefined
at History._resource (/Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/history.coffee:108:36)
at History._pageChanged (/Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/history.coffee:60:21)
at History._assign (/Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/history.coffee:213:19)
at /Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/browser.coffee:333:30
at Browser.withOptions (/Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/browser.coffee:107:14)
at Browser.visit (/Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/browser.coffee:327:12)
at Function.visit (/Users/tim/Documents/workspaceNode/EssenCrawler/node_modules/zombie/lib/zombie/index.coffee:13:33)
at Object. (/Users/tim/Documents/workspaceNode/EssenCrawler/test.js:12:8)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)

Thanks.