Spot the bug in the URLSession user loader

from URLSession
Swift 6.3.3 intermediate 4 min 2 issues to find

Find the two boundary failures hidden by this generated helper.

swift
func loadUser(from request: URLRequest) async throws -> User? {
    let (data, _) = try await URLSession.shared.data(for: request)
    return try? JSONDecoder().decode(User.self, from: data)
}
Open in playground
Report an error