browserstack-cli icon indicating copy to clipboard operation
browserstack-cli copied to clipboard

Error on basic functionality

Open conatus opened this issue 12 years ago • 0 comments

Hi all - thanks for developing this code.

Having trouble getting it working however.

bash-3.2$ browserstack status
Mac sessions limit: 4
Running windows sessions: 0
Total available time: 150000
Used time: 0
Running mac sessions: 0
Windows sessions limit: 8
bash-3.2$ browserstack browsers
undefined
bash-3.2$ browserstack launch firefox:3.6 http://google.com

/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/select_browser.js:43
  return browsers.sort(function(one, other){
                  ^
TypeError: Cannot call method 'sort' of null
    at sort (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/select_browser.js:43:19)
    at Object.selectBrowser (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/select_browser.js:5:14)
    at Object.BrowserStack.launch (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/browserstack.js:76:30)
    at _fun (/opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/cache.js:24:12)
    at /opt/boxen/nvm/v0.8.8/lib/node_modules/browserstack-cli/node_modules/browseroverflow/lib/cache.js:15:10
    at fs.readFile (fs.js:176:14)
    at Object.oncomplete (fs.js:297:15)

Clear that for some reason the browser variable is not being populated therefore the method is bailing out, although apparently the API access works.

conatus avatar Jun 03 '13 10:06 conatus