WebThingsIO / registration_server

The registration server for WebThings Gateway.
Mozilla Public License 2.0
79 stars 34 forks source link

TypeError: Cannot redefine property: registration_endpoint #96

Open mystogan99 opened 3 years ago

mystogan99 commented 3 years ago

I am unable to setup my custom registration server, after doing all the steps in README, I am getting an error while running the gateway.

Object.defineProperty(mergeInto, prop, Object.getOwnPropertyDescriptor(Object(mergeFrom), prop));
                 ^
TypeError: Cannot redefine property: registration_endpoint

from this file

gateway/node_modules/config/lib/config.js:1314

My local.json file looks like this (With my own NS details):

{
  "ssltunnel": {
    "registration_endpoint": "https://api.mydomain.org:8443",
    "domain": "mydomain.org",
    "certemail": "certificate@mydomain.org"
  }
}

I am running the gateway on Raspberry Pi 3B+. As soon as revert the changes in local.json, everything works all good. Is there something that I have missed?