When exposing multiple Things with the same title via the HTTP bindings, expose() invokes generateUniqueName here to append _2, and then does not check whether title_2 already exists.
Changing the if in http-server.ts#L272 to a while fixed this for me.
I.e:
while (this.things.has(urlPath)) {
urlPath = Helpers.generateUniqueName(urlPath);
}
When exposing multiple Things with the same title via the HTTP bindings,
expose()invokesgenerateUniqueNamehere to append_2, and then does not check whether title_2already exists.Changing the
ifin http-server.ts#L272 to awhilefixed this for me.I.e: