Skip to content

TypeError: Cannot redefine property: registration_endpoint #96

Description

@mys10gan

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": "[email protected]"
  }
}

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions