I believe there is a bug in wrapped fetch on POS. If you return a 204 status code with no body you get an error which you can’t catch as it’s in the post message.
data:text/javascript…D)%3B%7D)()%3B%0A:1
Uncaught TypeError: Failed to construct 'Response': Response with null body status cannot have body
at MessagePort.<anonymous>
The code I’m using to response is just a standard HTTP Response: new Response(null, {status: 204})
Looks like its still happening on the latest version
POS 10.8.1 on Android
UI Extension version 2025-07
Make a POST request from Shopify POS using fetch, to your API endpoint which returns at 204 with no body.
The wrapper you have around fetch throws an error because it can’t handle the empty body.