You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
I'm trying to setup Vendure using database replication options, however, after I set up two reader instances, and create a new product successfully, when page redirects to product page, Vendure throws product not found error. I'm thinking that this is because when Vendure redirects to product page, this is a Query request, and it goes to a reader instance, however, reader instance doesn't yet have the data replicated, so it throws product not found error.
Note: product is actually created, when I go to product list page, I can search and locate the product. This error only shows up when creating products successfully, and page automatically redirects to product page. Reader take time to replicate, but should be very quick, within 1 second. I used AWS aurora db.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
@vendure/core version:
Nodejs version
Database (mysql/postgres etc):
Additional context
Add any other context about the problem here.
I'm thinking if we can make the following change in product-detail.component.ts
Thanks for the report. I'd accept a PR for this but it would need to include a comment above those 2 operators clearly explaining why they are needed, as this is quite an obscure edge-case that is non-obvious.
Describe the bug
A clear and concise description of what the bug is.
I'm trying to setup Vendure using database replication options, however, after I set up two reader instances, and create a new product successfully, when page redirects to product page, Vendure throws product not found error. I'm thinking that this is because when Vendure redirects to product page, this is a Query request, and it goes to a reader instance, however, reader instance doesn't yet have the data replicated, so it throws product not found error.
Note: product is actually created, when I go to product list page, I can search and locate the product. This error only shows up when creating products successfully, and page automatically redirects to product page. Reader take time to replicate, but should be very quick, within 1 second. I used AWS aurora db.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
I'm thinking if we can make the following change in product-detail.component.ts
I added a delay(1000) and retry(3) to make sure that Vendure can retry 3 times after creating a product successfully before throwing the error
The text was updated successfully, but these errors were encountered: