-
-
Notifications
You must be signed in to change notification settings - Fork 891
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
Problem with main repo app: book purchase #87
Comments
@johnking thanks for opening up the issue. Can you clarify which app you are running and having a problem? I'm guessing it is either:
You can share your actual code in a public repo for us to review. If the book is successfully purchased by a user, you should see the following data in your database:
Do you see these data? |
Hi @klyburke The issue is related to the main repository, not about the tutorial code (book chapter-8 code). the only changes in my clone are
-John |
Thanks @johnking To help figure out the problem, can you confirm if you see the data I mentioned in the previous comment?
|
Hi @klyburke I tried a clean deployment locally with my own secrets, and completed the purchase process with the demo-book (forked from your demo-book repository), I checked the database:
let me know if you need more information to resolve it. thanks -John |
@johnking Thanks for your response about DB.
@klyburke Thanks for narrowing down on potential problem. |
I repeated the steps based on your instructions, but I did not find any log errors related to AWS SES or Mailchimp, and I did not receive the purchase notification email either. I could receive the notification email based on chapter 8-end code. both the console logs and in-application message give me a The DB has the same status, there is no |
@johnking Alright, this helps to narrow down problem even further. Please comment out these 2 blocks of code and test purchase again (remember to clear relevant data in DB):
The goal is to create Thanks. |
Hi @tima101 , The purchase flow is successful this time by commenting out the lines as specified above! I double checked that my second gmail address IS in the mailchimp MAILCHIMP_PURCHASED_LIST_ID. let me know what I should test next. thanks |
@johnking Great. This means that Mailchimp works as expected but not email sending block of code. Please comment out only this block of code to confirm our conclusion:
If purchase works then problem is within above code block. I may have found the problem, try fixing, replace I think your DB has 2 docs in This means that third-party APIs work fine and you created/added proper env variables. Problem is in wrong name for email template.
You can confirm this by uncommenting all code and adding If you confirm all above, please create pull request for fix. |
Yes, it works now. 👍 I will create a pull request soon. thanks again. |
based on: async-labs#87, the correct email template name should be: 'purchase' instead of 'purchased'
@johnking Have you seen our SaaS boilerplate: https://github.com/async-labs/saas ? If you happen to run/test/use our SaaS app, you are welcome to create pull requests in that repo as well. Thanks. |
hi @klyburke , thanks for your invitation, I will try your SaaS boilerplate later. |
based on: async-labs/builderbook#87, the correct email template name should be: 'purchase' instead of 'purchased'
based on: async-labs/builderbook#87, the correct email template name should be: 'purchase' instead of 'purchased'
based on: async-labs/builderbook#87, the correct email template name should be: 'purchase' instead of 'purchased'
based on: async-labs/builderbook#87, the correct email template name should be: 'purchase' instead of 'purchased'
based on: async-labs/builderbook#87, the correct email template name should be: 'purchase' instead of 'purchased'
based on: async-labs/builderbook#87, the correct email template name should be: 'purchase' instead of 'purchased'
After deploying the app both in local env and production env (zeit), I found: a regular user could not open the book and read the chapter even though:
but it worked when I follow the instructions and code of chapter-8 book/8-end
I am using macPro, chrome.
thanks
The text was updated successfully, but these errors were encountered: