Internal error building required inputs

Topic summary

Issue: A GraphQL query to subscriptionDraft.shippingOptions consistently returns “Internal error building required inputs,” regardless of the delivery address. It worked the previous week.

Scope: Currently limited to one test store; other test stores are unaffected. Impact on non-test stores is still unknown.

Technical context: The query fetches available shipping options for a subscription draft (an editable version of an existing subscription). The error occurs at the shippingOptions field in the GraphQL path.

Investigation: Support found some product variants have a null weight_value where it should default to 0.0 or a valid number. This likely causes shipping option calculation to fail.

Workaround: Set affected product variant weights to a small valid value (e.g., 0.1g), save, and rerun the query to verify the fix.

Actions and status: The shop ID was shared privately for debugging. Support will file a bug to improve error messaging and prevent storing null weight values. Discussion remains open pending confirmation that updating weights resolves the error.

Summarized with AI on February 14. AI used: gpt-5.

After looking into this, there are some product variants in your shop which have fields for the “weight_value” as null, when they should be defaulted to 0.0 or contain a valid value. I’m not sure how exactly this has happened, but if you look at the product variants on those subscriptions and perhaps set their weight to 0.1g as a test, then save them, and see if that resolves your GraphQL errors?

I will still report this as a bug needing improvements for both the error being raised and why values are being stored as null for weight instead of 0.0 to help prevent this issue in the future.