Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gunter
    @kwontaewan
    I tried searching for the error code in the github issue, but it does not work.
    magnolima
    @magnolima
    hello
    alvileg
    @alvileg
    hello
    is there people here that can help?
    Svyatoslav
    @SvyatoslavLynda
    Hello, who know how to set timeout for SessionManager?
    https://stackoverflow.com/questions/42759693/alamofire-timeout-not-working
    Anthony Plunkett
    @doobeh
    Hi, for those wanting to try out the beta version-- is there any documentation you're tending to refer newcomers to for a basic common API calls (JSON/post etc)
    Jon Shier
    @jshier
    @doobeh The high level APIs are very similar to v4, so that documentation should still work, though you need AF.request instead of Alamofire.request. We’re still working on the rest of the documentation, so let us know if you have any usage questions, either here or on our Swift Forums.
    There is also a new set of top level APIs which accept Encodable parameters and not just [String: Any] dictionaries, use those if you can.
    Martin WIRTH
    @martiwi
    Hi there, any idea when the version 5.0.0 would be released (approximately)?
    Jon Shier
    @jshier
    @martiwi As soon as the documentation is done. Soon is as close as we can get at the moment.
    Anup Deshpande
    @anup-deshpande
    Hello People,
    I am trying to get alamofire work but its not working. It keeps on saying that swift version 5.0 is not supported. So I changed the version to 4.2 now it is showing multiple errors
    Martin WIRTH
    @martiwi
    Thanks @jshier
    k4b00m-Hozaifa
    @k4b00m-Hozaifa
    Alamofire swift UI integration ?
    Jon Shier
    @jshier
    @k4b00m-Hozaifa Nothing specific is needed to use it with SwiftUI, as we already support SwiftPM. You can add the 5.0.0-beta.6 version to Xcode 11 using the built in SPM support. However, I do have some prototype Combine integrations online on the feature/initial-combine-support branch.
    k4b00m-Hozaifa
    @k4b00m-Hozaifa
    Nice thanks
    Eni Sinanaj
    @enisinanaj
    guys I have a question
    I'm making a multipart upload request to my server and almost everything is fine
    but the content-length header is missing for each content part
    any idea why this might happen or how to activate it ?
    Eni Sinanaj
    @enisinanaj
    the version I'm using is just ignoring the length when appending something to the multipart request.
    Jon Shier
    @jshier
    Which version are you using? And how are you building the multipart form?
    Eni Sinanaj
    @enisinanaj
    sorry for the late reply. I found the issue. it was with the content-length. I added the headers manually to every part of the multipart request including the missing content-length
    I'm using version 4.8. cannot use a newer version because I need to have a deploy target 9.0
    Ediro43
    @Ediro43
    Hello , in old alamofire in order to get the JSON from a weather site ( OpenWeatherApp ) you could simply use AlamoFire.request(URL_here) and then print the response
    now with alamofire 5.0 what can i do to get that ?
    Jon Shier
    @jshier
    @Ediro43 It’s simply AF.request() now.
    Lucas Ramage
    @oxr463
    How can I save an XML soap response to file using Alamofire.request()?
    Matt O'Gorman
    @mogorman
    i have an endpoint that returns gzipped json. it works fine via curl, but when i use alamofire.request im getting the gzipped json, its not automatically being de gzippped. where should i look to try to solve
    everything ive found online says that this just automatically works
    also i am using the default headers that are requesting gzip/deflate. the server is responding with content-encoding properly as well
    Lucas Ramage
    @oxr463
    Can you provide a log from your curl example vs your request?
    Matt O'Gorman
    @mogorman
    i figured it out, the data was being double gzipped some how. alamo was doing the right thing it was my fault
    Lucas Ramage
    @oxr463
    Oh wow
    dipcse07
    @dipcse07
    Hi I am new in ios developing and recenty using alamofire..
    my question is can anyone give me the documentation to upload image to server via alamofire
    corban123
    @corban123
    Is there a good way to go from the AnyPublisher<AnyDecodable, AFError> to a AnyPublisher<AnyDecodable, Error>?
    Jon Shier
    @jshier
    Sure, you can just mapError { $0 as Error }.eraseToAnyPublisher(). I would suggest trying to keep the real types you’re dealing with though.
    AnyDecodable should only really be necessary for heterogenous collections, not for your response handling.
    corban123
    @corban123
    Oh nice, thanks. Yeah, currently I'm attempting to get from the publishDecodable return value to some sort of replacement for Single<T> of RxSwift via Combine
    Jon Shier
    @jshier
    I have an eraseError() convenience method if I want to erase the error, but you don’t need AnyDecodable to do that.
    corban123
    @corban123
    Ah, my mistake, I made a mistake. I meant Single<Data> where Data could be either an Error or a response's data that will then be decoded afterwards into some sort of object T. However, I'm unsure if this is necessary anymore as unless I'm misunderstanding, publishDecodable attempts to decode via the decoder in that function
    Jon Shier
    @jshier
    Yes. There shouldn’t be any need to do your own decoding unless publishDecodable can’t do what you want. I’d suggest investigating our DataResponsePublisher in that case to publish your own path, rather than publishing data and doing your own decoding outside Alamofire.
    corban123
    @corban123
    I'll take a look into that, thanks.
    With everything being so new with AF combine, the lack of group knowledge in terms of examples on all this has definitely slowed down my process
    Jon Shier
    @jshier
    Once you’ve published your response, it’s just Combine.
    corban123
    @corban123
    Right... Makes sense. I have one last question. Is there an easy way to add authentication via a string sessionToken that needs to be placed in the header while writing the request? From what I'm seeing, .authenticate looks like it should handle this, however, the value is not really a SecTrust or a SecIdentity. Previously I'd converted the URLRequestConvertible into a URLRequest, then added the object to the headers in the request, however, I'd like to move away from that if possible
    The reason I hadn't been adding the sessionToken prior is due to the fact that it's in a Combine version of a ReplaySubject, so accessing the token is Async
    Jon Shier
    @jshier
    Not by default, no. authenticate adds a URLCredential, so if you’re using HTTP auth or one of the other supported credential auths, those should work automatically. For async credentials I’d suggest using a RequestAdapter.
    But if you’re just using a Published value for it, you can access that value directly to add it to the request.