-
Notifications
You must be signed in to change notification settings - Fork 54
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inplementation with Next.js #80
Comments
Can I fix this Issue? I am a Full-Stack Software Developer and work with various Tech Stack like MERN , NEXT , REACT , FLUTTER, C#. |
Of course! export async function POST(req: Request) { try {
} catch (error) { |
Open this Issue I will solve this |
Is this issue not already open? |
okay let me check again. I was having a network glitch not refreshing the Page But All is ok |
Your Issue : This issue is likely related to how the PDF is being generated or how the data is being fetched and sent. |
createInvoice/route.ts (Invoice Generation Endpoint) : import axios from 'axios'; export async function POST(req: Request) { try {
} catch (error) {
axios
}) Email Sending Function: function sendEmailWithInvoice(pdf) { axios I have made the necessary fixes based on your requirements for generating the PDF and sending it via email. Check this and run this In Your Coding Environment. Copy this code and run it in your project. Let me know if this resolves the issue, or if you encounter any other problems. |
Thank you very much for your contribution. First the endpoint returns the file encrypted on base63 string: export async function POST(req: Request) { try {
} catch (error) {
|
I m trying to build and proyect with Next.js and this invoice generator api but i cant found any example of an inplementation with Next.js or other framework.
The text was updated successfully, but these errors were encountered: