/health Error #2467
-
Hey, I've managed to get vendure working on railway with a Postgres database. When using my admin dashboard every few seconds a request is sent to https://.../admin-api/health?languageCode=en which fails with a response of
And a large red box on the top right of the site appears with the same message. Im not too sure whats going on how can I resolve this error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
It seems like the error you're encountering is related to GraphQL and the query being sent to your admin dashboard. To resolve this issue, you can follow these steps: Check Your GraphQL Query: Ensure that the request being sent to /admin-api/health contains a valid GraphQL query. It should be a well-formed query with the necessary fields and syntax. Check Your Apollo Client Configuration: If you're using Apollo Client to make GraphQL requests, verify that your client is correctly configured and is including a valid query when making requests to the /admin-api/health endpoint. Check Your Server Configuration: Make sure that your Vendure server and its GraphQL API are correctly set up to handle requests to /admin-api/health. Check if there are any misconfigurations or issues with your GraphQL schema. Update Dependencies: Ensure that your Vendure and related packages are up to date. Outdated dependencies can sometimes lead to compatibility issues. You might want to update your Vendure version and any GraphQL-related packages. Check for Middleware or Proxy Issues: If you have any middleware or reverse proxy (e.g., Nginx, Apache) in front of your server, make sure they are not modifying or interfering with the GraphQL requests. Debugging: If the issue persists, use debugging tools or logging to trace the request from your admin dashboard to the server and inspect the request payload to see if there are any issues with the query being sent. Consult Documentation/Community: Refer to the official Vendure documentation and community forums for specific solutions or to check if others have faced a similar issue. By carefully examining your GraphQL query, client configuration, and server setup, you should be able to identify and resolve the issue. If you're still facing problems, consider providing more details about your setup for more specific assistance. Best regards, |
Beta Was this translation helpful? Give feedback.
Removing
/admin-api
from apiHost resolved the issue.AdminUiPlugin.init({ route: 'admin', port: 3002, adminUiConfig: { apiHost: ' https://site.up.railway.app', }, }),