-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[multivendor] Maximum call stack size exceeded upon setting shipping method #3355
Comments
We ran into this issue recently as well in multiple places. Our fix at the moment is to break up loading the Channels relation in a separate call. Not the most optimal in my opinion. |
yes, at the moment that's what I'm doing |
@dylviz for you did it happen consistently? The original issue mentions it only happens sometimes. If we can isolate some consistently reproducible example code, it will make resolving much faster, plus we can also create a test for it to prevent any future regressions once fixed. |
From the frontend, I can get this consistently, but I'm not clear what's happening in the backend that is causing this. I can share a few findings as I go through it. Right now, I'm thinking the issue is here:
When the
Is anything here a potential red flag? I might be stuck here |
Describe the bug
Sometimes vendure throws call stack overflow error when setting a shipping method on multivendor plugin. The error seems to occur at
vendure/packages/dev-server/example-plugins/multivendor-plugin/config/mv-shipping-line-assignment-strategy.ts
Line 26 in a98fed0
mergeDeep
function invoked by EntityHydrator goes too deep.To Reproduce
Steps to reproduce the behavior:
The issue does not occur 100% of the time. But when it does, it happens after setting shipping method on an order.
Expected behavior
It should not cause stack overflow error.
Environment (please complete the following information):
Additional context
This issue started appearing out of the blue. The related discord thread is
#1336949445153263667
The text was updated successfully, but these errors were encountered: