"An internal error occurred while validating the Function's WebAssembly module" error blocking Shopify Functions deploy

Hi there, today, I started receiving this error message while trying to deploy my Functions:

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Version couldn't be created.                                                │
│                                                                              │
│  amount-off-shipping                                                         │
│                                                                              │
│  Validation errors                                                           │
│    • base: An internal error occurred while validating the Function's        │
│      WebAssembly module. Please try again later.                             │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

I haven’t changed my Function’s code or build process since the last successful deploy. Therefore, this seems like an issue outside my control.

What sort of logging information would you like me to share to help diagnose this issue? It doesn’t seem like we will be able to deploy new releases until this resolved.

Thanks in advance,

Tobe

1 Like

Hi @tobebuilds

Apologies for the late reply on this - where you able to resolve this?

Hi Liam, thanks for following up. The issue went away on its own.

I’ve started getting this now as well. Was working earlier in the day then randomly not. cargo build works within the extension but npm run dev from the root doesn’t work

│16:45:00 │   remove-shipping-for-usa │    Compiling remove-shipping-for-usa v1.0.0 (/Users/dangamble/Code/oh-polly-v2-app/extensions/remove-shipping-for-usa)                                                       │
│16:45:00 │   remove-shipping-for-usa │     Finished `release` profile [optimized] target(s) in 8.57s                                                                                                                │
│16:45:02 │               app-preview │ ❌ Error                                                                                                                                                                     │
│16:45:02 │   remove-shipping-for-usa │ └  An internal error occurred while validating the Function's WebAssembly module. Please try again later.