Closed brendansimcox closed 10 months ago
After updating the project, I had a problem viewing Pricing in the admin panel. It didn't show at all. Fixed it by deleting .cache folder. Hope this helps.
@brendansimcox – can you successfully run the project locally? If so, this could indicate that there's an issue with your lock-file.
@olivermrbl will attempt running it locally tomorrow morning and try with a fresh lock file, see if that makes any difference and then report back., ty
@olivermrbl removed the lock file and reinstalled on development environment which was successful, but now we're finding a secondary issue, the edit price list loads - but the request to the products within the pricelist times out, which seems to be crashing the medusa service - resulting in us needing to restart the service.
This is the request url:
/admin/price-lists/pl_01H93E3WTH55PKX9D2DZH9DJ4B/products?limit=10&offset=0&expand=variants%2Ccollection
Screenshot of time out below.
The only thing different in my package.json from above is
"@medusajs/medusa-oas-cli": "0.2.20-snapshot-20230921172817" < Removed
@olivermrbl hey buddy - do you happen to know if this is something you've been able to reproduce?
@brendansimcox, sorry for the slow follow-up. Did you manage to solve your issue?
Unfortunately not, we’re on 1.17.1 and still getting the timeout, can’t currently upgrade to 1.17.2 as we need to refactor a big chunk of api routes , but yeah, can’t get past the timeouts on the pricing lists, so stuck with a broken production ( which is currently on 1.16 and we don’t wanna risk updating when we can’t get our staging functional )
@olivermrbl I think i've found the issue - when opening the price list base page, there seems to be a network request to /admin/products with a limit=0, in our case we have approx 18,000 products and its timing out the server whilst it prepares the response, which is roughly 32mb (and 40-50seconds)
@olivermrbl this seems to be across 1.17.1 / 2 / 3 from what I can see, currently can't see the root of the issue, we're scouring through admin-ui package atm - seems to be triggered the first time you visit /a/pricing - looks to be trying to preload the full price list.
Thanks for sharing @brendansimcox. @kasperkristensen could you investigate this?
@kasperkristensen would it be possible to get a snapshot that we can install when this is approved?
hey @olivermrbl @kasperkristensen just tested this locally with yarn medusa develop and the snapshots and still getting the network request with limit=0
@brendansimcox, you'll need an admin snapshot. I'll publish one for you now :)
thatnks @olivermrbl
Try this one:
@medusajs/admin@7.1.7-next-20231102164835
thanks @olivermrbl trying now
all sorted, thank you both; @olivermrbl @kasperkristensen
Issue Summary
We have upgraded our staging environment as a pre-release test before deploying to production but found that the edit price list functionality isn't working
All packages are updated to the latest and manually added medusa-react to the latest as a dependency, running node 16, but getting this issue
Steps to reproduce
package.json