spxrogers / alamofire-gloss Goto Github PK
View Code? Open in Web Editor NEWGloss bindings for Alamofire
License: MIT License
Gloss bindings for Alamofire
License: MIT License
Update to Gloss 2.0, current version have the following issue
Error:(76, 63) initializer 'init()' is internal and cannot be referenced from a default argument value
Error:(38, 52) initializer 'init()' is internal and cannot be referenced from a default argument value
Error:(46, 124) initializer 'init()' is internal and cannot be referenced from a default argument value
EDIT:
🤔
You already updated to gloss 2.0 but current pod 'Alamofire-Gloss' is downloading version Alamofire-Gloss (2.1.0) instead of last version
EDIT2:
Found solution:
pod install --repo-update
hi
i get my data from our server as aes encrypted json.
how i can use your class to serialize encrypted data?
i can decrypt my data to normal json,bot how i can send my data after deycrypt them?!
sorry for bad english :(
Log:
Response serialization failed: JSON could not be serialized because of error: The operation couldn’t be completed. (Alamofire+Gloss error -1.) Failure Reason: jsonSerializationFailed(Error Domain=Alamofire+Gloss Code=-1 "(null)"
and part of code:
` Alamofire.request(request)
.validate(statusCode: 200 ..< 300)
.responseObject(T.self) { (response) in
switch response.result {
case .success(let response):
completion(response, nil)
case .failure(let error):
print("Error'd: \(error)")`
Alamofire-Gloss
swallows the root cause for serialization errors [here].
This is useful information to users and should be part of the NSError.userInfo
map.
I am getting error "Generic parameter 'T' could not be inferred" in below line .
self.sections = Decoder.decode(decodableArrayForKey: "sections")(json)
Any guess how to fixed that. I am using Xcode 9.
I'm getting the following error when trying to build
Error:(19, 17) ambiguous reference to member 'request(_:method:parameters:encoding:headers:)'
Hi @spxrogers! I would like to know if you will add support for Gloss 2.0 soon? :)
I've been trying to serialise a JSON array from the server, and have come across the error as titled in the subject.
To be more specific, I get the following:
"JSON could not be serialized because of error:
The operation couldn’t be completed. (Alamofire+Gloss error -1.)"
Had a look at the documentation, but couldn't really see anything that would tell me why the error is occurring, or what it means, - wondering if you could guide me in the right direction?
hi
thanks for your great work
please support swift 3 and Alamofire 4.0.1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.