bipio-server / bipio

The bip.io API Server
https://bip.io
Apache License 2.0
873 stars 117 forks source link

TypeError: Cannot set property 'activeDomainId' of null #51

Open EricCat opened 9 years ago

EricCat commented 9 years ago

I updated bipio from 0.3.21 to latest, then when I generating pods rpc, I got the following errors:

TypeError: Cannot set property 'activeDomainId' of null
at /bipio/src/modules/auth/native.js:192:41
at Function.collateResults (/bipio/src/modules/auth/native.js:155:7)
at next (/bipio/src/lib/step.js:51:23)
at /bipio/src/lib/step.js:83:14
at /bipio/src/managers/dao-mongo.js:923:5
at /bipio/node_modules/mongoose/node_modules/kareem/index.js:101:16
at process._tickDomainCallback (node.js:492:13)

Update

I found it due to Can not overwrite a protected Domain when I installing bipio.

{ [ValidationError: domain validation failed]
message: 'domain validation failed',
name: 'ValidationError',
errors:
{ name:
    { [ValidatorError: Can not overwrite a protected Domain]
       properties: [Object],
       message: 'Can not overwrite a protected Domain',
       name: 'ValidatorError',
       kind: undefined,
       path: 'name',
       value: 'localhost' } } }