sealcode / sealious

An extensible, declarative node framework
25 stars 2 forks source link

Error which stops the application start (fetch update information) #270

Closed arkadiusz-wieczorek closed 8 years ago

arkadiusz-wieczorek commented 8 years ago

I've found error until starting application, currently I use the Aero2, where the internet access is unlocked after approval code captcha for an hour.

selection_620

After an hour of internet access is blocked again to type sequent code. When I hadn't internet access I've tried to start application and I received error as you can see below. Unfortunately this makes it impossible starting of application, we should catch error.

Sealious: 0.7.11 node: 4.0.0

My resource type:

var Sealious = require("sealious");
Sealious.init();
new Sealious.ChipTypes.ResourceType({
    name: "article",
    fields: [{name: "author", type: "text"}]
});
Sealious.start();

Console output:

arkadiusz@arkadiusz-ThinkPad-X200:~/Projects/Sealious/hello-world$ sudo node .
23:49:18.034 - info: Loading plugins...
23:49:18.061 - debug: sealious (/home/arkadiusz/Projects/Sealious/sealious/package.json) requires: sealious-datastore-tingo
23:49:18.182 - info:    ✓ sealious-datastore-tingo
23:49:18.187 - debug: hello-world (/home/arkadiusz/Projects/Sealious/hello-world/package.json) requires: sealious-channel-rest
23:49:18.190 - debug: sealious-channel-rest (/home/arkadiusz/Projects/Sealious/hello-world/node_modules/sealious-channel-rest/package.json) requires: sealious-www-server
23:49:18.869 - info:    ✓ sealious-www-server
23:49:18.872 - info:    ✓ sealious-channel-rest
23:49:18.888 - info: Starting all chips:
23:49:18.888 - info:    datastore:
23:49:18.888 - info:      ✓ tingodb
23:49:18.895 - info:    access_strategy:
23:49:18.895 - info:      ✓ noone
23:49:18.895 - info:      ✓ public
23:49:18.896 - info:      ✓ just_owner
23:49:18.896 - info:    field_type:
23:49:18.896 - info:      ✓ date
23:49:18.896 - info:      ✓ datetime
23:49:18.897 - info:      ✓ boolean
23:49:18.897 - info:      ✓ email
23:49:18.897 - info:      ✓ int
23:49:18.897 - info:      ✓ float
23:49:18.897 - info:      ✓ html
23:49:18.897 - info:      ✓ text
23:49:18.897 - info:      ✓ hashed-text
23:49:18.897 - info:      ✓ color
23:49:18.897 - info:      ✓ file
23:49:18.898 - info:      ✓ reference
23:49:18.898 - info:    resource_type:
23:49:18.898 - info:      ✓ user
23:49:18.898 - info:      ✓ article
23:49:18.898 - info:    channel:
23:49:18.898 - info:      ✓ http
23:49:18.898 - info:      ✓ www_server
23:49:18.962 - info:      ✓ rest
23:49:19.024 - info: SERVER RUNNING: http://arkadiusz-ThinkPad-X200:8080

23:49:20.206 - error:  
 - is_sealious_error: true
 - status_message: Could not fetch update information from NPM registry.
 - is_error: true
 - is_user_fault: false
 - is_developer_fault: false
 - type: error
 - http_code: 500
 - data: [object Object]

[TypeError: Cannot read property 'error' of undefined]
adwydman commented 8 years ago

I'm trying to fix that issue in here: https://github.com/sealcode/sealious/pull/275