Skip to content

Instantly share code, notes, and snippets.

@SD10
Created March 29, 2018 09:56
Show Gist options
  • Save SD10/a3a53f40ba017d0bfd29dfa9e89c186b to your computer and use it in GitHub Desktop.
Save SD10/a3a53f40ba017d0bfd29dfa9e89c186b to your computer and use it in GitHub Desktop.
List of Moya Issues Labeled Question
Request Object mapJSON cant' use #1613
Not working with AlamofireNetworkActivityIndicator #1612
Upload image using .uploadMultipart get error status code 500 #1610
Question: How to merge multiple requests using zip? I am using Moya with RxSwift. #1609
Not getting data #1608
Refresh Token by Subclassing MoyaProvider without using RxSwift #1604
What should I do in Moya 10.0 ? #1603
UploadCompositeMultipart ([MultipartFormData], urlParameters: [String: Any]) parameter Chinese scrambled code. #1601
Sending GET with JSON in body gets Timeout Error #1599
Why decodable mapping without closure? #1598
Moya Task finished with error - code: -999 #1597
Having issues with Cocoapods #1595
How to post json parameters and UIImage both #1594
Repeating requests when server return 401 #1588
Moya POST request not working as intended... #1585
Upload image with parameters. #1584
Problems using the 'headers' property #1582
How to pass String data in request body? #1578
Parameter encoding - linker error #1576
Generic Type parameters in TargetType enum #1575
[Ask] Cannot invoke 'map' with an argument list of type #1574
Moya 11 Default Request Mapping? #1569
Upload progress incorrect due to wrong payload size #1565
Does Moya support last release of ReactiveSwift 3.1? #1564
How to validate response with custom rule #1563
If my project have two baseUrl, but with same endpointClosure and requestClosure。How to package targettype more elegant #1561
Upgrading from Moya 8.0 to 10.0 causes tests to no longer run properly. #1554
How do I send a request which the parameter type is "query" and the param is a array? #1545
Request cancellation #1543
RxMoya retryWhen delay issue #1541
Provide mock data for success and error response for the same request #1539
How to provide SSL Pinned certificates for NSURLSession in Moya? #1538
how to call previous api on authentication failure? #1536
Status code 405 returned for the first POST call of the app even when POST is an allowed method on the API. #1533
URL to Demo is incorrect. #1528
Parameter #1526
uploadMultipart([MultipartFormData]) #1519
use version 10.0.1 #1518
Using Moya.Method face " __T09Alamofire10HTTPMethodON" #1517
how to use task " requestCompositeParameters " with bodyEncoding which is URLEncoding #1516
FOr status code 400 returning 200 status code #1515
how to set the request header or baseUrl with concentrated , not in every target #1514
MoyaProvider issue within IOS11 #1513
Cannot convert value of type '(MoyaTest) -> Endpoint<MoyaTest>' to expected argument type '(_) -> Endpoint<_>' #1512
How to customize the statuscode of Response? #1511
Suclass MoyaProvider for token refreshing #1510
Request a question about the flatMapLatest request network #1504
Failure request when put app in foreground. #1501
Step by step sample how to run the examples? #1499
Anyway cancel all requests? #1497
Incorrect retainment model in RxSwift extension for MoyaProvider. #1496
Http Method Post parameters are empty so getting false response from server #1493
AccessTokenPlugin hidden coupling #1492
Question about Moya response logging (log request too) #1491
[stupid question]Hi, i'm wondering how you feel about my friend's project MoyaX(https://github.com/jasl/MoyaX) #1490
When the network is disconnected, how do I take out the cached data using the CachePlugin? #1488
cancel Observable<ProgressResponse> #1487
Handling of null values of respones? #1486
Should I run plugin in sub thread #1485
How to perform request prior executing actual request #1484
Add additional parameters to all requests #1482
Use of undeclared type 'ParameterEncoding' #1481
set requestTimeoutClosure in Moya #1478
Basic Auth Plugin leads to dispatch of multiple request. #1477
carthage is fetching RxSwift all the time #1474
Instances of Moya provider #1472
Using Moya some questions #1467
Response objct mapString() got nil #1466
Can't request #1464
Does Moya support Https? So how do we do that? #1463
Use the latest version of Moya/RxSwift to request the network interface to return an error message #1462
hi,I need to write a task of the extension, but I can't get to the parameters of the task #1461
Request never starts inside flatMapLatest #1460
Error while updating Moya with carthge #1458
Pod install installs v9.0.0 #1456
Could you tell me how to use the pod is available adapter Swift4.0 Moya/RxSwift? #1455
How to print curl request in moya 10.0.0 #1453
Unarchive response, which is archived with RLE #1451
Moya not catching network response after 8.0.x -> 10.0 migration #1450
When does a plugin override the set headers in the http request? #1448
Custom status code validation #1447
How to customize JSONEncoder for Task.requestJSONEncodable? #1442
Carthage : Moya requires at least osx 10.11 #1441
Endpoint closure not adding http header fields anymore. #1440
I want wrap Moya into function, but no work. #1439
[Enhancement] Customize the localizedDescription for MoyaErrors for user facing. #1437
[Help] OAuth2 Authentication using Moya #1436
Work thought proxy server #1435
Carthage update hangs when fetching ReactiveSwift submodule #1433
Optional request parameters #1431
Need a different header configuration than the default Multipart Upload configuration? 400 Status Code #1430
Can I re-throw Moya error or how to process errors of several async requests? #1429
The "didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType)" can not be invoked #1428
Is it possible to install Moya/ReactiveMoya via Carthage without installing RxSwift? #1427
How to send Synchronous Request #1426
How to work in Moya 10.0? #1423
I want to integrate Moya with Carthage but I can't find the RxMoya file. #1422
[Question] Get absolute url from TargetType instance value? #1419
Suggestion: add helper methods to MoyaError to get response from server #1415
Please close This problem #1413
Use AccessTokenPlugin only after login #1407
Content type for requestJSONEncodable #1406
How to restart the request #1404
How to add extension to retry with OAuth? #1402
Using Moya as a Facade a certain SDK #1396
how to set timeout for 10.0 #1392
How to submit a params like json array #1387
How to use RxMoyaProvider #1384
Weak self in Rx extension causes dispose of the request #1380
RxSwift4.0 #1379
how to pod target to >= (9.0.0) #1376
Merge 10.0 branch into master? #1369
How to send parameters in get request #1366
using .uploadCompositeMultipart(multipartData, urlParameters: params) get 404 error #1364
Error installing Moya #1363
How to add parameters to body when upload multipart data in 10.0.0_beta1 #1362
How to avoid duplicate HTTP request? #1361
Moya 9: Type Task has no member 'request' #1353
Failed convert to current syntax #1345
Moya + AlamofireImage #1342
How to Send a request with JSON body in Moya 9.0.0? #1338
How does support swift 4 #1333
Missing Content-Type when using .requestData(Data) #1329
I try to use Moya, upload a photo array is always an error always convert a value of type 'MultipartFormData to expected element type' MultipartFormData ', whether can you help me take a look at how to solve #1319
RxMoya & ReactiveMoya tests are using deprecated providers #1312
URLEncoding differs from Alamofire's URLEncoding #1309
Pods written in Swift can only be integrated as frameworks #1307
How to generate header parameter depending on request's content type of multipart form data request? #1305
Swift 3.2 #1304
Swift 4 and RxMoya #1303
TargetType default value for sampleData #1301
Weird issues calling dematerialize() running tests target #1300
Multitarget with from data parameter #1299
How to use CredentialsPlugin for specific target endpoint ? #1298
Omit Target parameters #1297
How to download file with breakpoint #1296
use moya to appstore crash #1293
Way to get some metrics for network requests to realize Circuit Breaker pattern #1288
Switching on a RxSwift Moya error #1284
Question about the Moya Pattern with Large API #1282
Send only a String value as a parameter #1281
[Question] New Moya 9.0.0 has different implementation for retryWhen #1280
How to run Moya Demo #1278
Stub Responses and Validation #1277
How exactly do parameters and tasks work in Moya 9? #1276
Return call inside RxSwift #1275
How to use Moya with access token as url parameter? #1273
MoyaError Code=4 "The network connection was lost." #1271
How to chain two network calls in Moya? #1270
[Question] How I can cancel a RxMoya request #1268
Objects with RxMoyaProvider are no longer retained in 9.0 #1267
What happened to mapArray and MapObject #1263
Does authorizationType require a switch self? #1261
Is it possible to save or capture Moya responses into stub json ala VCR? #1251
Moya cancellable request consistently triggering Exception 6, Subcode 8 #1250
Moya 9 Beta breaks parameters with all requests #1247
Update ReactiveSwift to 2.0 for Moya 8.0 #1245
Moya-ModelMapper not parsing response into model #1244
Multipart aways set content-type to multipart/form-data #1235
Moya support for Swift 4 with RxSwift ? #1233
Recommended approach to handling Network Errors? #1223
Please add support swift4. #1222
How to return a stub from an Endpoint? #1216
How to add text as MultipartFormData like postman, or I have a wrong idea? #1209
Undeclared type 'DateScheduler' #1208
Use RxMoyaProvider or MoyaProvider.rx with RxSwift? #1207
pod 'Moya/RxSwift', can't find MoyaProvider+Rx.swift #1202
My request responses treated as RTO error by Moya and RxMoya in iOS 8 & 9 #1200
Support one MoyaProvider instance, and mutil request? #1199
The URL in the `?` is turned into `%3F`, causes the return data exception #1198
build failed #1196
How do you use moya for HTTPS #1195
Convert MoyaError to get Http status Code on custom plugins #1190
Xcode9 +moya(9.0.0-alpha.1) after pod install,then display compile error #1189
MoyaProvider+Internal.swift prints an error in the console from sendRequest #1188
modile complied with swift 4.0 cannot be imported in swift 3.1 #1187
Update master readme for Swift 3.2 and Swift 4.0 #1186
RxMoya, how to controll whether to show a loading view while requesting? #1184
RxMoyaProvider with TestScheduler #1179
Refresh Token and retry old request #1177
How can i use Webview's Delegate didFailLoadWithError with Controller content Moya #1176
How to reauthenticate using Bearer HTTP Auth #1174
How to implement Network wrapper of request -> response cycle with ReactiveCocoa? #1171
Implicit JSON serialization for BODY parameters of POST request like Retrofit in Android #1170
How to Send a delete request with parameters #1166
Question: How to get the response body of an error? #1156
Repeat request in RxMoya #1154
the current request is not a multipart request #1152
can't find MultiMoyaProvider implementation.need help!!
Add Http Header when conforming to the TargetType protocol #1138
Native support for Encodable types in Swift 4 #1135
Cannot convert value of type NSURLRequest to RequestResultClosure #1133
Performing an URLSessionUploadTask in background? #1131
I am facing this issue "fatal error: unexpectedly found nil while unwrapping an Optional value" #1130
Encode url parameters in .post request #1129
Provide sampleData in Provider instead of TargetType #1126
RxSwift dependency not compatible with Xcode 9 and Swift 3.2 #1122
How do I create a path with a '?' within the string? #1119
Add Moya.Response extension for Decodable types in Swift 4 #1118
Parameter Encoding for POST method not working. #1116
upload progress wrong #1115
Plugins usage? #1111
Support app extension API only #1110
No iOS targets when adding Moya as submodule #1102
How to remove the "Content-Type" key from HTTPHeaderFields #1100
When use Moya how to write unit test? #1098
RxSwift: requestWithProgress().filterCompleted() Call onNext twice? #1094
How can I get requestParameters from Response obj? #1090
Issue when using Moya branch for handling 400 500 failures #1088
How to add httpHeaderFields in automatic? #1087
Authorization header not set #1083
Vision document / FAQ #1081
How to deal with case : if one of the input parameter is array of dictionary #1080
Moya website. #1079
Promoting awesome work around Moya. #1078
Change EndpointSampleResponse.networkError associated value to Swift.Error #1073
[RFC]: extend MoyaBot to automatically follow up with issues & PRs where we're waiting for author response #1071
[CI RFC]: discuss danger not blocking tests on CircleCI #1070
Return nil in sampledata #1069
command failed due to signal: segmentation fault: 11 #1068
Endpoint closure that adds parameters not working for .upload tasks #1066
How to get Message from server for failure case #1064
Cannot use optional chaining on non-optional value of type 'NSURL' #1063
How to handle certificate pinning in a URLAuthenticationChallenge? #1062
Customizing Response Handling based on endpoint #1061
Return array to parameters. #1060
Using both URLEncoding and JSONEncoding #1059
Missing Headers in Response->Request->allHTTPHeaderFields #1057
why parameters couldn't be a json array? #1056
Moya object inner mapping (with Argo) #1054
Trying to declare extension and getting error. #1052
The Demo can't run with Xcode 8.3.1 #1051
BaseURL request problem. #1049
Rx/ReactiveMoya does not expose queue parameter #1048
Create AuthPlugin to send json on network request is not work #1047
Add a property `headers` to TargetType? #1046
Moya.Response should use URLHTTPResponse class #1040
Generate cURL output from Moya request? #1037
Parameter Validation #1034
can not inherit MoyaError #1033
Not able to get URLEncoding working correctly when there is "?" and the method is "POST" #1030
Does Moya/Alamofire Support Multiple Base URL's? #1028
why not error, Received empty network response for xxxxx #1026
Moya(8.0.0-beta.6)compiler error #1025
JSONEncoding not working #1024
is Moya support cancel request? #1023
Can you provide retry option in your library #1022
How to add apikey for http header #1021
Data upload #1012
Support RxSwift's Single #1011
When should I dispose the RxMoyaProvider? #1009
Should I share the RxMoyaProvider with multiple requests? #1008
nil value in JSON POST body #1007
Hot to upload file using PUT and URLEncoded Parameters? #1004
How can I add headers to RxMoyaProvider ? #1003
More documention on stubbing requests #1001
How to use encoding with ":" && "=" ? #999
How to use sampleData response for unit tests? #998
RSS #997
How To Handle Self Signed SSL Certificates Over HTTPS #992
Module file's minimum deployment target is ios9.0 v9.0 #991
When making a request, how can I see the request URL? #988
Statistical Metrics #987
Weird issus while subclassing MoyaProvider #982
How to use Moya to ask infinite url in my JSON response with RxSwift? #980
[Question] Dynamic baseURL #978
I want to abort the request and show message for user when the parameters is incorrect, How can I do? #974
Sending images as multipart form array #973
Nested Parameters #972
Documentation for swift 2.2 #970
How to set in the APIProvider or somewhere to make sure the url response using right url ? #969
Plugins doesn't work with GET requests #965
does not conform to protocol 'TargetType in swift 3(resolved) #964
Getting error "Argument labels don't match available overloads" trying to add HTTP header. #961
Using data from bundle as sampleData from tutorial Basic.md #958
Is my way to put header to Moya correct format ? #955
Post request with Json #953
Considering how configuration scales for larger projects (?) #951
TargetTypeWithCompletion for encapsulated parsing #948
Can't use latest Alamofire and RxSwift with Moya 8.0.1 #942
Progress reporting sometimes hanging with rxMoya #940
How to build requests for "non-standard" APIs? #938
Moya Example with best practices #936
Basic Authentication w/ Base64 Encoding #935
Demo should not be built by Carthage #932
How do i get whole response and map it into object / array using RxProvider ? #929
Can we return value inside provider.request ? #927
Would it be possible to use TargetType in request closures to be able to set timeouts based on target? #926
Moya RxSwift and singleton pattern ? #921
Upload pdf data #920
Problems to make a valid url #919
How can I contract a url like https://api.github.com/gists/:id? #918
MultipartFormData block not getting executed. #917
How to cancel a download request #916
fatal error: Test is not a multipart upload target #911
Post request with parameters in both body and url #909
Make a second request to URL provided in JSON response. #904
Why make the endpointClosure、requestClosure and so on `let`? #892
Why requestClosure is not support @escaping? #875
Keep getting error: Type does not conform to protocol 'TargetType' #868
How do I provide sample data for each endpoint if the sample response is big? #866
Suggestion for TargetType #864
What is sampleData for? #863
Bad Request 400 Error after update to swift 3 #862
Allow TargetType to specify its ParameterEncoding #858
How do I reload a custom uiviewcontroller after rx request? #857
How can I use comma at url query? #855
How setup an Authorization field in HTTPHeader? #854
How do test without Nimble #853
Status code errors interpreted as Moya.Error.underlying #852
Pagination documentation/example? #850
Consuming SOAP Api. Where can I set the httpBody? #849
How to handle errors after filterSuccessfulStatusCodes? #848
Moya request timing out - works fine in Alamofire directly #844
如何取消请求 #839
How to change baseURL at runtime? #836
Fail to build from CartHage: ~/Carthage/Checkouts/Moya/Demo/Demo.xcworkspace ... failed with exit code 65 #835
How to work with offset page #834
Abstract Response Deserialization in Moya? #823
Discuss: rationale on circle ci v/ travis? #821
Module file's minium deployment target is ios9.0 #820
RxMoya doesn't call complete #819
Discuss: Use a single target for all platforms? #818
JSON response shown in some other form when using custom transformations #816
Documentation questions/errors? #812
Socket error: Too many open files #809
What is the proper way to set up unit testing with quick/nimble for moya? #803
How to write Method if a request has both GET and POST method? #802
How do we handle parameter encodings now in swift 3? #801
How to use it in iOS 8 #798
Make provider to wait an endpoint to get done #794
Returning new Signal not working #793
Having to migrate over to swift 3. What exactly is task? #788
Paging with the @odata.nextLink value #785
Send parameter by date type, json is invalid #783
Moya can support iOS8? #782
how can i download files from totally different url using moya? #781
Manual install instructions? #780
If-None-Match and Etag not working #770
MultipartFormData Moya 8.0 produces 502 error #769
How to get the URLRequest object from the provider? #765
Use of unresolved identifier AnonymousDisposable when installing Moya/RxSwift with CocoaPods #763
when I use github "Moya/Moya" , it's become github "Moya/Moya" "3.0.0" in the file Cartfile.resolved #760
Release 8.0.0 #759
Building Moya using Carthage #756
Is it possible to define GET & POST parameters for an endpoint #754
How to stub/mock invalid responses? #750
What's the best way to chain requests that are dependent on one another using RxMoya? #748
Pure IPv6 Support? #746
Creating a PluginType to handle request reauthentication #744
How to set network timeout? #743
HTTP response headers from an RxMoya.Response object #742
Moya 8.0.0-beta.2 support SWIFT 3? #741
How to retry all requests? #740
mapString() adds extra quotes and backslashes #739
Someone can help me to o add error handling code manually to every request in latest rx version? #738
moya 8.0 how to requestClosure #732
Parameter with multiple values #729
RxSwift update to 3.0.0-rc.1 #726
Getting error in Parameter Encoding after the update to the latest release #724
Moya 8.0.0 final #720
Which baseURL to use for a stub-only provider? #718
How to add url parameters and httpbody? #714
Return cached response when without network? #713
Different Params encoding within one Endpoint? #712
How about bot? #711
AWS Upload - Order of parameters #708
Mystery in building targets or solving cocoapods and carthage dependencies. #707
Moya version for Swift X.X #706
What is the best way to transform server response globally? #703
Compilation error in ReactiveCocoa in xcode 8 #702
Allow stubbing of NSURLResponse within sampleResponseClosure #701
Question: Moya not respecting SessionManager configuration for requests? #700
Ambiguous reference to member 'request(_:completion:)' #691
Swift 3: lowercase HTTP verb enums? #684
Alamofire ParameterEncoding #681
Change Endpoint Helper Functions #679
Maya dependency fails a pod lint #675
8.0 beta support swift 3.0 ? #669
Unable to post correct request parameter with multipart Body #666
Documentation over file uploads #663
[RX] Debugging Mode between Moya and Alamofire #658
Carthage CI is taking a long time #656
Rename ReactiveCocoa subspec #648
Can not use in swift3.0 #645
Sorted Parameters #644
[Question] Beta tag for podspec use #641
Reasoning behind iOS 9 minimum requirement? #639
Cannot use optional chaining on non-optional value of type 'NSURL' #634
What version is still compatible with xcode 7 and swift 2.3? #631
How to use Moya in swift3.0 #627
Question: Are you supposed to create different services for the endpoints or just one? #624
How/where to set the HTTP JSON body, Error: Response: Received empty network response for #620
How/where to set the HTTP JSON body. #619
What is the difference between requestclosure and endpointclosure? #617
Numbers serialization #605
How do we debug/see the request being set over to backend servers when using RxSwift? #604
CircleCI Skipping SDKs #602
Load stubs from files #600
How to upload image and/or image array as a multipart parameters ? #598
How to implement parameters in this format: ["15", "19"] ? #597
Error example creates Xcode warning #596
Error Types for Request Closure failures #595
Looking for modularity in Moya? #591
Demo requires manual pod installation #590
Alamofire 4 and RxSwift 3 Compatibility #589
Should Moya be used in conjunction with Promise? #587
Moya + AWS API Gateway (signed V4) #584
Text and Image added to "files" in multipart form data #580
Protocol requires property 'multipartBody' with type '[MultipartFormData]?' #571
Request cancelled vs network failure (error.nserror) #570
Can Moya use custom network layer? #564
Unable to find module `Result` #558
Any possibility for network engine abstraction #556
RxMoya.TargetType vs Moya.TargetType #551
Xcode error with new requestClosure in 7.0 #549
Question: Encoding parameters for http://jsonapi.org structure #545
Track progress of request #542
How to create a stubbing provider that returns stubs based on internal state #541
Bool value in post and put parameter is always 0 #518
Endpoint also with image as parameter #517
How to send more than one time the same parameter #506
Dynamic Endpoints #503
Moya send more than once request #501
Making Moya more ignorant #495
How to implement multiple parameters, and can I split the solution for each model #482
How target.shouldRetry looks like? #476
How to implement multi parameters separated with comma #474
Moya with charles proxy #471
Handle empty response #469
RxMoyaProvider.mapArray/mapArrayOptional in nested structures? #461
Improve Moya support for RESTful targets #448
Enums with private types #447
Must stubbed responses be included in the main target? #425
Add http body #403
Documentation for plugin use / customisation #397
Subclass vs. Plugins, or: Unable to override request(token: Target) in RxMoyaProvider subclass #367
After updating my pods Moya decreased version #363
Intercept request for missing authentication #359
Approach to TargetType #348
Response parsing #347
Is that possible to intercept a request before sending it using plugin? #326
How can i pass custom parameters to an endpoint? #325
Multiple ParameterEncoding #314
Deprecate RAC2 support? #298
Send string in body of request #290
Redundant/superfluous SignalProducer in request()? #276
Offline Disk Caching #197
Better image in README #170
RxSwift extensions question #163
Combine MoyaTarget and MoyaPath protocols #136
CocoaPods+Moya #101
Make defaultParams part of MoyaPath protocol #74
Is there any way to pass default parameters to Moya requests? #67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment