elis
Explore posts from serversError formatting with trpcExpress.createExpressMiddleware
I'm trying to figure out how to do error formatting but it's unclear how to do it in the context of
trpcExpress.createExpressMiddleware
- The documentation use trpcInit.context().create({ errorFormatter(opts) { ... })
which I'm not using as I'm following the React Query example from the docs.
Is there a concrete example I can refer to where should I plug the errorFormatter(opts)
?2 replies
Service saying "out of memory"
My project was on a Hobby plan and I've received errors on one of the services mentioning Out of Memory issue - upgraded to Team plan with 32gb but still getting the out of memory error message
I've restarted and redeployed the service - still receiving the error - how can I debug/resolve that issue?
10 replies
Service URL ENV variable is empty
The variable for a static URL of one of the services is empty (despite having a domain associated with it) - other services (and env variables) who are dependent on it are failing.
Variable name:
RAILWAY_SERVICE_MPC_API_URL
105 replies
RAILWAY_{serviceName}_STATIC_URL
I have a service in the same project named
mpc-api
- how do I set the env variable for another service to load the static URL of this service?
e.g. I want the env variable to be equal https://mpa-api-mytest-pr-12.up.railway.app
- to do so do I set the value of the env var to: RAILWAY_{mpc-api}_STATIC_URL
- or `RAILWAY_mpc-api_STATIC_URL
?
RAILWAY_{mpc-api}_STATIC_URL
returned nothing (replaced with empty string).3 replies