I also faced same issue. I tried responseString
instead of responseJSON
and it worked. I guess this is a bug in Alamofire
with using it with django
.
More Related Contents:
- Why am I unable to do a simple Alamofire request?
- How to return value from Alamofire
- Uploading file with parameters using Alamofire
- How to parse JSON response from Alamofire API in Swift?
- Send POST parameters with MultipartFormData using Alamofire, in iOS Swift
- POST request with a simple string in body with Alamofire
- Chain multiple Alamofire requests
- How to disable caching in Alamofire
- How to check internet connection in alamofire?
- Set timeout in Alamofire
- Checking for multiple asynchronous responses from Alamofire and Swift
- How to post nested json by SwiftyJson and Alamofire?
- Downloading UIImage via AlamofireImage? [duplicate]
- “No such module ‘Alamofire'” Xcode won’t recognize Alamofire framework
- AlamoFire Download in Background Session
- How to use NetworkReachabilityManager in Alamofire
- Alamofire with a self-signed certificate / ServerTrustPolicy
- Swift extract regex matches
- Save images in NSUserDefaults?
- reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling
- MKMapView: Instead of Annotation Pin, a custom view
- NSURLConnection sendAsynchronousRequest can’t get variable out of closure
- How to capitalize each word in a string using Swift iOS
- update label from background timer
- Formatting Phone number in Swift
- Swift – Saving highscore using NSUserDefaults
- The default app has not been configured yet
- SwiftUI: Translucent background for fullScreenCover
- How do you properly order data from Firebase chronologically
- ios swift: Is it possible to change the font style of a certain word in a string?