Uber API付款方式&乘坐估计500内部服务器错误

时间:2017-01-02 09:52:28

标签: macos uber-api

我们一直在使用Uber API,在我们的示波器获得批准后,我们​​正在对其进行生产测试,我们在付款方面遇到了500个错误。乘坐估计。

我们正在使用的URL是

NSString *url = [NSString stringWithFormat:@"%@/payment-methods",baseURL];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:url]];
[request addValue:@"en_US" forHTTPHeaderField:@"Accept-Language"];
[request addValue:@"application/json; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[request addValue:[NSString stringWithFormat:@"Bearer %@", delegate->AccessToken] forHTTPHeaderField:@"Authorization"];

[self performNetworkOperationWithRequest:request completionHandler:^(NSDictionary *requestDictionary, NSURLResponse *response, NSError *error) {


    if(!error)
    {

    }
    else
    {

    }}];

其中baseURL = @“https://api.uber.com/v1.2”; 并且代理 - > AccessToken =我们在Auth2时获得的AccessToken。

NSHTTPURLResponse: 0x6080006374c0> { URL: https://api.uber.com/v1.2/payment-methods } { status code: 500, headers {
   Connection = "keep-alive";
   "Content-Length" = 75;
   "Content-Type" = "application/json";
   Date = "Mon, 02 Jan 2017 07:44:43 GMT";
   Server = nginx;
   "Strict-Transport-Security" = "max-age=604800";
   "X-Content-Type-Options" = nosniff;
   "X-Uber-App" = "uberex-nonsandbox, migrator-uberex-optimus";
   "X-XSS-Protection" = "1; mode=block";
} }

0 个答案:

没有答案