NSURLSessionDataTask changes between iOS 16 to iOS 17?

I have an issue where performing a 'POST' request fails with a 400 when done on a device running iOS 16, but succeeds with a 200 on devices running iOS 17. I have not been able to find any explanations for this behavior. I've checked the request on both versions and it's identical in both versions of iOS, as far as I can tell.

BodyStream : JSON object data

Headers : Content-Type:application/json

TimeoutInterval: 900

Replies

That error is almost certainly coming from your server. For advice on how to debug such issues, see Debugging HTTP Server-Side Errors.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • I understand that the server is likely sending the error. My question has to do with understanding why I don't receive the error on iOS 17, but do on iOS 16, without any changes to app or server side code. Did Apple change something in the SDK that alters the behavior?

Add a Comment