Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

GetAllServers Api return null value #28

Open
ssplyuvrajsingh opened this issue Jan 24, 2020 · 1 comment
Open

GetAllServers Api return null value #28

ssplyuvrajsingh opened this issue Jan 24, 2020 · 1 comment

Comments

@ssplyuvrajsingh
Copy link

Hello
I am facing an issue while installing Azurecdn Toolkit package. After installing this package GetAllserver ape called and it returns a null value.
Please Help

image

@c9mb
Copy link

c9mb commented Jan 24, 2020

I encountered the same issue, where the resource promise to GetAllServers calls ApplicationContext.Services.ServerRegistrationService.GetActiveServers() which returns null.
I solved for my case by calling CurrentServerIdentity instead of GetActiveServers which works where you only have the one to resolve.
It was unclear to me that the project source code was the latest 0.2.0-alpha-000062 version, so I wrote my own simple UmbracoAuthorizedJsonController and a resource promise to call it, and made it a fallback in the dashboard's angular controller.
It works, albeit after a time-out waiting for the original to fail, however if I was sure that that the source code is the latest, then changing CacheApiController.cs would be more sensible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants