Open ajhelsby opened 6 years ago
Finding the same is true on a standard EC2 instance as well
good chances are that the file is not there or don't have read permissions. so how about try to log the file content. this should bring you closer toe the true cause of problem. not sure what the path ""public/documents/whitepaper" + ip + "" + country + ".pdf"" means, so it might be that you want a little ./ as prefix for relative, or ~/ for absolutes.
@ajhelsby Maybe it's relevant? https://github.com/chunyenHuang/hummusRecipe/issues/51
I'm trying to deploy my express node application that contains hummus and hummus-recipe to an elastic beanstalk instance but it seems to be stopping the read functionality. Running the application locally works absolutely fine and I have no issues whatsoever. When I try an run my PDF editing function I get
I have tried a few possible fixes including:
Verifying that the pdf is indeed in the location I am trying to read from Using a preprocessed version of hummus-recipe from another EC2 box with the same setup as my elastic beanstalk The code below is the snippet that I am trying to get working:
I may be missing something very basic but any help on this would be great