davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 343 forks source link

PHP Fatal error: Call to a member function attachment() on null in BaseService.php on line 160 #78

Closed tajny closed 4 years ago

tajny commented 7 years ago

For about 5 months i'm using ebay sdk , ocassionaly it gives me fatal error during async request, is it possible to add throw declaration , eg. RuntimeException ?

if (is_null($response)) throw new RuntimeException....

?

davidtsadler commented 7 years ago

I'll look into improving how the SDK handles null responses.

agavss commented 7 years ago

Recently i'm having a similar issue: Fatal error: Call to a member function attachment() on a non-object in BaseService.php on line 160 The sdk version i'm using is 7.0, doing an upgrade will solve this issue? Thanks

gaiterjones commented 7 years ago

I am seeing this now too, am running v5, updating to 13 breaks my code at the moment - was this fixed?

cgaugel commented 5 years ago

Any news here?