Kenny
Explore posts from serversUnable to load env from service variables
https://github.com/nytrek/bostadsval-backend
I have created a minimal repo that I have used to try and deploy to nestjs however the env does not appear to load in correctly. I'm using nestjs together with mongoose. When I wrap the env variable in strings I get the following error
- MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
and without strings
- MongoAPIError: URI cannot contain options with no value
which indicates to me that the service variable is loaded but not correctly. The minimal repo works 100% locally.
Please let me know if railway does not support this type of projects being deployed so that I can start looking for alternatives. Thanks
56 replies
TTCTheo's Typesafe Cult
•Created by Kenny on 9/4/2023 in #questions
How do I pass a blob from frontend to backend api?
I'm working on a project using next.js pages directory and langchain's pdf loader. I would like to pass a pdf from frontend to my api so that I can read the contents, create embeddings and store the vectors. I would not like to store the pdf itself. Is there an approach to this that I could work off?
3 replies