When you shut down a self-hosted server that is connected to your Prisma Cloud account, you cannot use Prisma Cloud anymore.
To Reproduce
Steps to reproduce the behavior:
Go to https://app.prisma.io/<workspace>/servers/add-server, and use "Connect to a server"
enter the URL to a self-hosted server that is currently running, and finish the wizard.
Shut down the self-hosted server.
Go to https://app.prisma.io/<workspace>/servers
Endless loading. Open dev tools and locate one request to api.cloud.prisma.sh which returns this error:
Cannot return null for non-nullable field Cluster.version.
Expected behavior
I suggest the following:
The Cloud API should return a human-readable error, something like "Server not reachable"
The Prisma Console should handle self-hosted servers that can't be connected to gracefully - one error from one server should not cause the entire Console to fail.
The Console should print "Connection error" or similar for those servers that can't be connected to.
Describe the bug
When you shut down a self-hosted server that is connected to your Prisma Cloud account, you cannot use Prisma Cloud anymore.
To Reproduce Steps to reproduce the behavior:
https://app.prisma.io/<workspace>/servers/add-server
, and use "Connect to a server"https://app.prisma.io/<workspace>/servers
api.cloud.prisma.sh
which returns this error:Expected behavior
I suggest the following: