shopifySync: Invalid data for domain: null/undefined value given for required field
Hey folks! We are consistently running into the same error on Shopify app install. 1. The user experiences as error message on install, but when attempting to reinstall, they are routed to the app as if the install was valid 2. On our end, we see
GGT_INVALID_ACTION_INPUT: Invalid data for domain: null/undefined value given for required field
GGT_INVALID_ACTION_INPUT: Invalid data for domain: null/undefined value given for required field
in the logs for
shopifySync
shopifySync
run. 3. Looking at the gadget installs tab, I see the store, API Scope Access is granted, Webhook Status is registered, but Last Sync is marked never synced. 4. If I manually trigger a sync, it passes.
Stack trace for the original error:
Error: GGT_INVALID_ACTION_INPUT: Invalid data for domain: null/undefined value given for required field at gadgetErrorFor (/gadget/app/.gadget/client/dist-cjs/connection/support.js:306:12) at assertResponseSuccess (/gadget/app/.gadget/client/dist-cjs/connection/support.js:317:13) at assertMutationSuccess (/gadget/app/.gadget/client/dist-cjs/connection/support.js:311:10) at InternalModelManager.create (/gadget/app/.gadget/client/dist-cjs/connection/InternalModelManager.js:375:61) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async save (/gadget/app/.gadget/server/dist-cjs/effects.js:155:18) at async run (/gadget/app/api/models/shopifySync/actions/run.ts:24:5) at async /app/packages/app-sandbox/src/services/EffectsImplementation.js:134:28 at async /app/packages/app-sandbox/src/services/EffectsImplementation.js:123:24 at async /app/packages/app-sandbox/src/services/EffectsImplementation.js:121:16
Error: GGT_INVALID_ACTION_INPUT: Invalid data for domain: null/undefined value given for required field at gadgetErrorFor (/gadget/app/.gadget/client/dist-cjs/connection/support.js:306:12) at assertResponseSuccess (/gadget/app/.gadget/client/dist-cjs/connection/support.js:317:13) at assertMutationSuccess (/gadget/app/.gadget/client/dist-cjs/connection/support.js:311:10) at InternalModelManager.create (/gadget/app/.gadget/client/dist-cjs/connection/InternalModelManager.js:375:61) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async save (/gadget/app/.gadget/server/dist-cjs/effects.js:155:18) at async run (/gadget/app/api/models/shopifySync/actions/run.ts:24:5) at async /app/packages/app-sandbox/src/services/EffectsImplementation.js:134:28 at async /app/packages/app-sandbox/src/services/EffectsImplementation.js:123:24 at async /app/packages/app-sandbox/src/services/EffectsImplementation.js:121:16
traceId: 2b874e28e96fffdd8381c8828b931fc2 reloaderProxyId is 1flWa2RUhNWDdBQq1snLP
This seems like it's all inside the Gadget platform code, so I was surprised not to see other instances of this in the discord channel. Any ideas? Thanks!