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

TypeError: Object #<Object> has no method 'handlePackageServerConnectionError' #2713

Closed
aldeed opened this Issue Sep 28, 2014 · 9 comments

Comments

Projects
None yet
5 participants
@aldeed
Contributor

aldeed commented Sep 28, 2014

Intermittently, when running a command, during package refresh progress bar on 0.9.3, I'm getting a crash with this error.

/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:206
                        throw(ex);
                              ^
TypeError: Object #<Object> has no method 'handlePackageServerConnectionError'
    at _updateServerPackageData (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/package-client.js:221:10)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/package-client.js:201:15
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:247:13
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:240:29
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:238:18
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:229:23
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at Object.capture (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:228:19)
    at Object.exports.updateServerPackageData (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/package-client.js:200:16)
    at _.extend._refresh (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/catalog.js:181:40)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/catalog.js:147:14
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:323:18
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:316:34
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:314:23
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at Object.enterJob (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:300:26)
    at _.extend.refresh (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/catalog.js:143:18)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands-packages.js:63:22
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands-packages.js:52:11
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:247:13
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:240:29
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:238:18
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:229:23
    at _.extend.withValue (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
    at Object.capture (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:228:19)
    at exports.doOrDie (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands-packages.js:51:31)
    at refreshOfficialCatalogOrDie (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands-packages.js:62:3)
    at main.registerCommand.name [as func] (/Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands-packages.js:171:3)
    at /Users/Eric/.meteor/packages/meteor-tool/.1.0.32.yuellp++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:1241:23
@seliverstov

This comment has been minimized.

seliverstov commented Sep 29, 2014

I have the same issue when try to add new package to project (accounts-ui, accounts-password e.t.c)

@hypno2000

This comment has been minimized.

hypno2000 commented Sep 29, 2014

Having same issue on ubuntu. The box is behind a proxy and is using http_proxy env var. Could that be something to do with that? Is the package manager supporting http_proxy var?

@hypno2000

This comment has been minimized.

hypno2000 commented Sep 29, 2014

I think the line tools/package-client.js:221 which is atm
self.handlePackageServerConnectionError(err); should be exports.handlePackageServerConnectionError(err);

The connection error in my case is probably caused by proxy inability to handle websockets.

@avital

This comment has been minimized.

Contributor

avital commented Sep 29, 2014

@seliverstov Does it always fail for you? Can you add any packages?

@insaneinc01

This comment has been minimized.

insaneinc01 commented Sep 30, 2014

I get the same error:
TypeError: Object # has no method 'handlePackageServerConnectionError'
(along with the rest of the lines) while adding a package.

I tried adding the package name manually in .meteor/packages and doing a 'meteor update', still get the same error.

Any resolution please?

@avital

This comment has been minimized.

Contributor

avital commented Sep 30, 2014

My understanding is that you get this error when you're offline or
generally unable to reach the package server (eg if you're behind certain
proxies or firewalls). In these cases, the tool should only look for cached
packages instead of crashing. We're working on releasing 0.9.3.1 which
resolves this. In the meanwhile, you can probably use 0.9.2.2 to add
packages: meteor --release 0.9.2.2 add (...) or meteor --release 0.9.2.2 update.

But still, if you're getting this, that means that even with the fix you
won't be able to see newly published packages. Maybe you use Meteor from
different networks, some of which are behind a proxy or firewall?

On Tue, Sep 30, 2014 at 11:10 AM, insaneinc01 notifications@github.com
wrote:

I get the same error:
TypeError: Object # has no method 'handlePackageServerConnectionError'
(along with the rest of the lines) while adding a package.

I tried adding the package name manually in .meteor/packages and doing a
'meteor update', still get the same error.

Any resolution please?


Reply to this email directly or view it on GitHub
#2713 (comment).

@insaneinc01

This comment has been minimized.

insaneinc01 commented Sep 30, 2014

@avital
Sorry, its a false alarm! Its working now.
Thanks for the write up Avital, I understand now. It got to do with the network issue. I'm not behind a proxy, but there was a momentary network drop when i was trying to add packages.

@avital

This comment has been minimized.

Contributor

avital commented Sep 30, 2014

Thanks for the update.

@avital

This comment has been minimized.

Contributor

avital commented Oct 1, 2014

Should be resolved with 0.9.3.1, just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment