{"action":"created","issue":{"url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php/issues/63","repository_url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php","labels_url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php/issues/63/comments","events_url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php/issues/63/events","html_url":"https://github.com/davidtsadler/ebay-sdk-php/issues/63","id":195479645,"number":63,"title":"Working with BulkDataExchangeService throws Guzzle [Guzzle\\Http\\Exception\\ServerErrorResponseException] Server error response [status code] 500        ","user":{"login":"marcelkussin","id":7452469,"avatar_url":"https://avatars.githubusercontent.com/u/7452469?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelkussin","html_url":"https://github.com/marcelkussin","followers_url":"https://api.github.com/users/marcelkussin/followers","following_url":"https://api.github.com/users/marcelkussin/following{/other_user}","gists_url":"https://api.github.com/users/marcelkussin/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelkussin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelkussin/subscriptions","organizations_url":"https://api.github.com/users/marcelkussin/orgs","repos_url":"https://api.github.com/users/marcelkussin/repos","events_url":"https://api.github.com/users/marcelkussin/events{/privacy}","received_events_url":"https://api.github.com/users/marcelkussin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-14T09:25:03Z","updated_at":"2016-12-14T10:14:03Z","closed_at":"2016-12-14T10:00:28Z","body":"Hello,\r\n\r\nim using your Library since several months but now suddenly i get a Response and i dont know how to debug it.\r\n\r\nException:\r\n```\r\n[Guzzle\\Http\\Exception\\ServerErrorResponseException]        \r\n  Server error response                                       \r\n  [status code] 500                                           \r\n  [reason phrase] Internal Server Error                       \r\n  [url] https://webservices.ebay.com/BulkDataExchangeService  \r\n```\r\n\r\nCode:\r\n```\r\n$exchangeService = new BulkDataExchange\\Services\\BulkDataExchangeService(array(\r\n\t\t\t\t\t    'authToken' => $config[$config['current']]['usertoken'],\r\n\t\t\t\t\t    'sandbox' => $config['current'] == 'sandbox'\r\n\t\t\t\t\t));\r\n\t\t\t\t\t$transferService = new FileTransfer\\Services\\FileTransferService(array(\r\n\t\t\t\t\t    'authToken' => $config[$config['current']]['usertoken'],\r\n\t\t\t\t\t    'sandbox' => $config['current'] == 'sandbox'\r\n\t\t\t\t\t));\r\n\t\t\t\t\t$merchantDataService = new MerchantData\\Services\\MerchantDataService();\r\n\r\n$request = new BulkDataExchange\\Types\\GetJobsRequest();\r\n\t\t\t\t\t$response = $exchangeService->getJobs($request); -> throws exception\r\n```"},"comment":{"url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php/issues/comments/266995990","html_url":"https://github.com/davidtsadler/ebay-sdk-php/issues/63#issuecomment-266995990","issue_url":"https://api.github.com/repos/davidtsadler/ebay-sdk-php/issues/63","id":266995990,"user":{"login":"davidtsadler","id":436631,"avatar_url":"https://avatars.githubusercontent.com/u/436631?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtsadler","html_url":"https://github.com/davidtsadler","followers_url":"https://api.github.com/users/davidtsadler/followers","following_url":"https://api.github.com/users/davidtsadler/following{/other_user}","gists_url":"https://api.github.com/users/davidtsadler/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtsadler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtsadler/subscriptions","organizations_url":"https://api.github.com/users/davidtsadler/orgs","repos_url":"https://api.github.com/users/davidtsadler/repos","events_url":"https://api.github.com/users/davidtsadler/events{/privacy}","received_events_url":"https://api.github.com/users/davidtsadler/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T10:14:03Z","updated_at":"2016-12-14T10:14:03Z","body":"It is possible to catch the exception thrown by Guzzle. It's a bit hacky but it does show the XML response from eBay which can help tracking down the cause of the error.\r\n\r\n```php\r\ntry\r\n{\r\n    $response = $exchangeService->getJobs($request);\r\n}\r\ncatch (GuzzleHttp\\Exception\\RequestException $e) {\r\n    if ($e->hasResponse()) {\r\n        echo $e->getResponse()->getBody()->getContents();\r\n    }    \r\n    exit();\r\n}\r\n```"}}
{"actor":{"display_login":"davidtsadler"}}