ios - status code: 500 ebay finding api -


i'm sending simple request query ebay listing keyword using code below (app id redacted). connection appears fine status code: 500 in response. help?

nsstring *ebayrequeststring = @"http://svcs.ebay.com/services/search/findingservice/v1?operation-name=finditemsbykeywords&service-version=1.12.0&security-appname=my_app_id&response-data-format=xml&rest-payload&keywords=harry%20potter%20phoenix&paginationinput.entriesperpage=2";       // encode url string nscharacterset *set = [nscharacterset urlqueryallowedcharacterset]; nsstring *encodedurlasstring = [ebayrequeststring stringbyaddingpercentencodingwithallowedcharacters:set];   nsurl *url = [nsurl urlwithstring:encodedurlasstring]; nsmutableurlrequest *request = [nsmutableurlrequest requestwithurl:url]; [request sethttpmethod: @"post"]; [request addvalue:@"application/json" forhttpheaderfield:@"content-type"]; [request addvalue:[[nsbundle mainbundle] bundleidentifier] forhttpheaderfield:@"x-ios-bundle-identifier"];  nsurlsession *session = [nsurlsession sharedsession]; nsurlsessiondatatask *datatask = [session datataskwithrequest:request                                             completionhandler:^(nsdata *data, nsurlresponse *response, nserror *error)                                   {                                       // data                                        nsstring* strdata = [[nsstring alloc] initwithdata:self.receiveddata encoding:nsutf8stringencoding];                                       nslog(@"updating ebay data....\n%@", strdata);                                   }]; [datatask resume];  <nshttpurlresponse: 0x128b2cbf0> { url: http://svcs.ebay.com/services/search/findingservice/v1?operation-name=finditemsbykeywords&service-version=1.12.0&security-appname=my_app_id&response-data-format=xml&rest-payload&keywords=harry%2520potter%2520phoenix&paginationinput.entriesperpage=2 } { status code: 500, headers { connection = "keep-alive"; "content-encoding" = gzip; "content-type" = "text/xml;charset=utf-8"; date = "fri, 02 sep 2016 00:03:47 gmt"; guid = "156e8356-1230-a7ea-0622-28c2e7d0f7ab"; server = "apache-coyote/1.1"; "transfer-encoding" = identity; "x-cnection" = close; "x-ebay-request-id" = "156e8356-1230-a7ea-0622-28c2e7d0f7ab!services.search.findingservice.v1!10.126.160.98!fndngesb[]"; "x-ebay-soa-error-response" = true; "x-ebay-soa-locale-list" = "en-us_us"; "x-ebay-soa-message-protocol" = none; "x-ebay-soa-operation-name" = finditemsbykeywords; "x-ebay-soa-request-id" = "156e8356-13c0-a34c-5635-0d65fc048eb4"; "x-ebay-soa-response-data-format" = xml; "x-ebay-soa-service-metrics" = 7665214; "x-ebay-soa-service-name" = "{http://www.ebay.com/marketplace/search/v1/services}findingservice"; "x-ebay-soa-service-version" = "1.13.0"; } } 


Comments