Why am I getting 'swift no content' errors and how do I fix them? or How to handle 'swift no content'

18 Replies, 1660 Views

Ran into this last week! Turns out my backend was sending a 204 *with* a body (lol, bad practice).

Swift’s URLSession just... ignores the body if it’s a 204. So if you’re *expecting* data, double-check the status code first.

Tools like Charles Proxy can help sniff out what’s *really* happening.

Messages In This Thread



Users browsing this thread: 1 Guest(s)