Open trakanom opened 1 year ago
While the serverless function is operational and handling your email requests, you can start building a more comprehensive backend using Django.
Once your Django backend is ready and deployed:
This approach allows you to have an operational email-sending feature using GCP Cloud Functions while concurrently developing a more robust backend with Django.
Attempts Made:
Code Adjustment: Ensured that the cloud function is correctly set up with Express and Nodemailer, and the function is exported correctly.
Dependencies Check: Verified that all dependencies (Express, Nodemailer, Cors) are installed and updated to the latest versions.
Testing: Attempted to test the function through the GCP console, encountering a TypeError: stream.listeners is not a function
error.
Local Testing: [If done, describe the results. If not done, this step is pending.]
Log Analysis: Checked GCP logs for error details and found a TypeError
related to stream listeners.
Next Steps:
Local Testing: If not done already, test the function locally using the Functions Framework to identify if the issue persists in a local environment.
Deep Dive into Error: Investigate the specific TypeError
encountered in the logs to understand if it’s related to the codebase or the environment.
Community/Support Query: Consider posting the issue in relevant forums or GCP support with specific error details for insights or solutions from the community or support team.
Alternative Solutions: Explore alternative methods for sending emails, such as using different Nodemailer transports or using a different email sending service/API.
Environment Check: Ensure that the Node.js environment and GCP configurations (like memory allocation) are optimal for the function’s operation
Issue: 'Send Request' Button Not Working in HireMeModal
Description:
The 'Send Request' button in the
HireMeModal
component does not currently send an email when clicked. This functionality is crucial for potential clients or employers to contact the portfolio owner directly through the website.Suggested Fixes:
Integrate Backend Email Server:
Use a Third-Party Email Sending Service:
Use a Serverless Function:
Additional Notes:
Priority: High
This functionality is crucial for communication through the portfolio website and should be implemented and tested thoroughly to ensure reliability and security.
Feel free to adjust the content as per your requirements and then submit the issue. This will help you keep track of this task and also allow others to contribute or provide solutions. If you have any other questions or need further assistance, feel free to ask!