What’s really strange is at one point it was working, but at some point doesn’t work. I’ve verified the environment variables, I’ve looked at the Google console, and everything seems fine. I’ve spent almost a full day on this trying to start from scratch etc, but have given up.
If you need more help, please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.
I fixed my issue, though it was extremely frustrating.
It had to do with a pdf reading library I was using, but the error and issue was nowhere near it and the logs were not helpful. I think it was to do with using the files in a serverless environment, and breaking the route.
I’m now trying to print a pdf with puppeteer and having a similar issue, partly because the build has to be under 50mb and puppeteer brings in chrome. Do you have any examples of printing a pdf with puppeteer in vercel?