{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress/issues/34","repository_url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress","labels_url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress/issues/34/comments","events_url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress/issues/34/events","html_url":"https://github.com/thephpleague/omnipay-paymentexpress/issues/34","id":166523742,"number":34,"title":"InvalidResponseException - Only when \"live\"","user":{"login":"jpgnz","id":1733900,"avatar_url":"https://avatars.githubusercontent.com/u/1733900?v=3","gravatar_id":"","url":"https://api.github.com/users/jpgnz","html_url":"https://github.com/jpgnz","followers_url":"https://api.github.com/users/jpgnz/followers","following_url":"https://api.github.com/users/jpgnz/following{/other_user}","gists_url":"https://api.github.com/users/jpgnz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpgnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpgnz/subscriptions","organizations_url":"https://api.github.com/users/jpgnz/orgs","repos_url":"https://api.github.com/users/jpgnz/repos","events_url":"https://api.github.com/users/jpgnz/events{/privacy}","received_events_url":"https://api.github.com/users/jpgnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-20T08:17:02Z","updated_at":"2016-07-20T19:40:46Z","closed_at":null,"body":"I've just pushed a project up to a UAT server, very quickly got feedback that people couldn't get through an item purchase as they were getting an InvalidResponseException.\r\n\r\nI've got two identically configured servers (Ubuntu 14.04, php7.0, nginx), one inside my dev network that's not accessible to the outside world, and one AWS EC2 instance for UAT.\r\n\r\nRunning the same code, same DPS credentials, the local one works flawlessly, the EC2 instance throws a InvalidResponseException.\r\n\r\nTo rule things out I setup a vanilla Laravel 5.2 + omnipay/paymentexpress repo (https://github.com/jpgnz/omnipay-test/) - and it suffers from the same thing on the return call (https://github.com/jpgnz/omnipay-test/blob/master/app/Http/Controllers/OmnipayController.php#L52)\r\n\r\nWould appreciate any insight? The only thing I can think of is the PxPay callback doesn't work internally, but this errors before that could get a chance to happen, and I can see the callback attempt in the httpd logs."},"comment":{"url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress/issues/comments/234059085","html_url":"https://github.com/thephpleague/omnipay-paymentexpress/issues/34#issuecomment-234059085","issue_url":"https://api.github.com/repos/thephpleague/omnipay-paymentexpress/issues/34","id":234059085,"user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T19:40:46Z","updated_at":"2016-07-20T19:40:46Z","body":"Laravel 5.2 supports both Symfony 2 and Symfony 3. But Omnipay only supports the EventDispatcher from Symfony 2. But that's not the problem, otherwise you would have had composer errors before ;) Just something to remind when upgrading to Laravel 5.3, that you still need event-dispatcher 2.x, see the note here: https://github.com/thephpleague/omnipay\r\n\r\nSo you're getting the InvalidResponseException from here? Or what does your stacktrace say? https://github.com/thephpleague/omnipay-paymentexpress/blob/8dc92bc7be313c7e412a6b79801ad42551898256/src/Message/PxPayCompleteAuthorizeRequest.php#L15\r\nThat would suggest the query is empty, but you verified the correct url is shown? No weird redirects or something?"}}
{"actor":{"display_login":"barryvdh"}}