Add EspoCRM API to Cloudron health checks
-
Because EspoCRM is a single page application (SPA), often the application will be loading (so http checks will return OK), but the data content will not.
If the API isn't returning data, then the application is not working for the user, and it is better than System Admins should also know this before users have to report it.
Can you add the API endpoint to health checks too please?
-
Because EspoCRM is a single page application (SPA), often the application will be loading (so http checks will return OK), but the data content will not.
If the API isn't returning data, then the application is not working for the user, and it is better than System Admins should also know this before users have to report it.
Can you add the API endpoint to health checks too please?
@marcusquinn I like the idea! I assume you mean to change the Cloudron health check to use an API end point to check if the app is "running" or not using https://docs.espocrm.com/development/api/ . I think I have investigated this route in the past because our tests also sporadically fail when Cloudron thinks EspoCRM is running but it's not yet. So, we add a few sleeps here and there to make it work. The issue is/was that the API calls require an API token which the health check process does not have. Some apps like gogs/gitea have an explicit /healthcheck endpoint. Do you think you can open this issue upstream?
-
@marcusquinn I like the idea! I assume you mean to change the Cloudron health check to use an API end point to check if the app is "running" or not using https://docs.espocrm.com/development/api/ . I think I have investigated this route in the past because our tests also sporadically fail when Cloudron thinks EspoCRM is running but it's not yet. So, we add a few sleeps here and there to make it work. The issue is/was that the API calls require an API token which the health check process does not have. Some apps like gogs/gitea have an explicit /healthcheck endpoint. Do you think you can open this issue upstream?
@girish Gotchya and understood - will do.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login