OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
26 stars 107 forks source link

API Server v92 no longer starting if custom api is added #157

Closed juancarloscamargo closed 1 week ago

juancarloscamargo commented 1 week ago

I have developed a custom api which has been working alright for days. Today I've made a change to the samesite cookie setting and saved the changes. After that, the server wont load anymore and I see this message in the log:

"2024-06-25 13:12:20.6096 WARN ( WebLog ) : System.Exception: API could not be loaded. The API server will be running in connectionless mode. System.Exception: API could not be loaded. The API server will be running in connectionless mode. ---> System.Exception: Error while processing setting: ServerConfig/OwnershipConfig/EditableFields/SPSGroup ---> System.ArgumentException: An element with the same key already exists"

If I remove the custom api .dll the server starts. Is this somehow affecting the ccc.CompositionApi.global.json? I haven't made any custom configuration changes whatsoever to the ServerConfig/OwnershipConfig/EditableFields/SPSGroup key , and I don't see any such entry in my ccc.CompositionApi.global.json either.

Any ideas?

juancarloscamargo commented 1 week ago

Filed a support request. I don't know what could be causing this, I'm not using that ServerConfig/OwnershipConfig/EditableFields/SPSGroup key anywhere at all.

juancarloscamargo commented 1 week ago

..and closing. The update process was downloading a previous CCC api that was using the same namespace. Still, I dont understand why that key was ever being mentioned.