Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230028

Fetch of mp3 succeeds but with http status zero not 200

$
0
0

using capacitor 6.2, deploying via xcode to ios device.

A simple fetch for a local resource such as

fetch("/public/C4.mp3", { method: "GET" });

produces a result with http status 0 instead of 200. The fetch succeeds, as I can get the full data stream, but the incorrect status code is a problem when a library is doing the fetching.

renaming the file to extension “.mpthree” addresses the issue.

What’s special about mp3?
What other types will have this issue?
Is (isn’t?) it a bug to produce http result code zero?


Viewing all articles
Browse latest Browse all 230028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>