Comments (12)
Have you entered your production and sandbox application keys in the file configuration.php? This error normally comes up if they have been missed.
from ebay-sdk-examples.
I skipped the config file and used production keys directly:
$service = new FindingService([
'appId' => '<my_production_key_here>',
'apiVersion' => 907,
'globalId' => GlobalIds::US,
]);
$request = new FindItemsByKeywordsRequest();
$request->keywords = 'Harry Potter';
$response = $service->findItemsByKeywords($request);
print_r($response);
from ebay-sdk-examples.
Strange. There is nothing wrong with your code so I would recommend that you double check the appId key.
- Ensure that you are using the production app id and not the sandbox by mistake.
- Ensure that you have copied all of the app id. Missing one or more characters from either the start or end would be enough to trigger the error.
- Check that you haven't added any extra characters such as spaces or newline to the string. I've had instances in the past when copying text from a file resulted in an newline character been injected at the end. In addition it's easy inadvertently add spaces between the quote marks E.g
' a string '
should be'a string'
from ebay-sdk-examples.
I've just spotted that you are not specifying the correct apiVersion. You have used the Trading version by mistake. For the Finding service the latest version is '1.13.0'.
'apiVersion' => '1.13.0'
Double check both your app id and the version number as it looks like the error can be caused if either are wrong.
from ebay-sdk-examples.
yep! that helped. thanks a lot. it wasn't clear to me and I've used ebay api version number... now it works :)
from ebay-sdk-examples.
The issue has a given me an idea :) I'm wondering if the SDK should automatically use the latest API version as a default value. That way users of the SDK wouldn't have to specify it in the code unless they wanted to override the default. I'll look at adding this in a future release.
from ebay-sdk-examples.
Same Guzzler error
'( ! ) Fatal error: Uncaught exception 'Guzzle\Http\Exception\ServerErrorResponseException' with message ' in C:\wamp64\www\sites\EbaySDK\OldSDK\ebay-sdk-examples-all\vendor\guzzle\guzzle\src\Guzzle\Http\Exception\BadResponseException.php on line 43
( ! ) Guzzle\Http\Exception\ServerErrorResponseException: Server error response [status code] 500 [reason phrase] Internal Server Error [url] http://svcs.ebay.com/services/search/FindingService/v1 in C:\wamp64\www\sites\EbaySDK\OldSDK\ebay-sdk-examples-all\vendor\guzzle\guzzle\src\Guzzle\Http\Exception\BadResponseException.php on line 43'
Not sure what is different in these 2 examples
FindItemsForFavoriteSearch - DOES NOT WORK - GUZZLER ERROR
//=================================================//
require __DIR__.'/../vendor/autoload.php';
$config = require __DIR__.'/../configuration.php';
//The namespaces provided by the SDK
use \DTS\eBaySDK\Constants; //tested - is needed
use \DTS\eBaySDK\Finding\Services;
use \DTS\eBaySDK\Finding\Types;
//use \DTS\eBaySDK\Finding\Enums; // not needed
$service = new Services\FindingService(array(
'appId' => $config['production']['appId'],
'apiVersion' => $config['findingApiVersion'],
'globalId' => Constants\GlobalIds::US
));
//Ask for it
$request = new Types\FindItemsForFavoriteSearchRequest();
//Limit it
$request->paginationInput = new Types\PaginationInput();
$request->paginationInput->entriesPerPage = 10;
//Return it
$response = $service->findItemsForFavoriteSearch($request);
Simple-keywords-search.php - DOES WORK
//=========================================//
require __DIR__.'/../vendor/autoload.php';
$config = require __DIR__.'/../configuration.php';
//The namespaces provided by the SDK
use \DTS\eBaySDK\Constants; //tested - is needed
use \DTS\eBaySDK\Finding\Services;
use \DTS\eBaySDK\Finding\Types;
$service = new Services\FindingService(array(
'appId' => $config['production']['appId'],
'apiVersion' => $config['findingApiVersion'],
'globalId' => Constants\GlobalIds::US
));
$request = new Types\FindItemsByKeywordsRequest();
$response = $service->findItemsByKeywords($request);
from ebay-sdk-examples.
It may be that the findItemsForFavoriteSearch operation is no longer supported by the Finding API. I'll need to double check because if that is the case then it also needs to be removed from the SDK.
from ebay-sdk-examples.
... don't worry about that if you have deprecated it... I have posted in
Google forum that even though I have replaced both new SDK folders and
changed all of my keys... It's still will not connect... If I can get your
assistance on that, I'm sure the new stuffed would probably work... No
sense in you having to go backwards
On Aug 18, 2016 12:19 PM, "David Terence Sadler" [email protected]
wrote:
It may be that the findItemsForFavoriteSearch operation is no longer
supported by the Finding API. I'll need to double check because if that is
the case then it also needs to be removed from the SDK.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALOmSf_779YnsqiNTxxrKbgYdErZo8fbks5qhIYCgaJpZM4DzA3L
.
from ebay-sdk-examples.
What is authToken?
from ebay-sdk-examples.
Any idea how to get sold count after searching by keyword
Thanks
from ebay-sdk-examples.
i have this exception and i try use
$service = new Services\FindingService([
'credentials' => $this->config['production']['credentials'],
'apiVersion' => '1.13.0',
'globalId' => Constants\GlobalIds::US
]);
but the exception still found
Server error: POST https://svcs.ebay.com/services/search/FindingService/v1
resulted in a 500 Internal Server Error
response:
from ebay-sdk-examples.
Related Issues (20)
- Getting item description
- addfixedpriceitem with SellerProfiles - PaymentProfileID, ReturnProfileID, ShippingProfileID HOT 1
- How to get list of all products?
- How to fill "additional ship to location - buyers contact for costs" via api
- Error Status Code: 401 1001: Invalid access token new issue HOT 1
- Uncaught Guzzle Exception 500 on downloadFile of FileTrasfer API HOT 1
- PlaceOrder example missing
- How can I get the tracking number of an Order I placed? HOT 1
- Requesting help how to setup examples
- Error: System currently not available BUT offer gets created HOT 4
- Error: The UPC field is missing. The UPC field is missing. Please add UPC to the listing and try again. HOT 3
- Complete example of UserToken (Oauth) ?
- Always getting Access token is missing in the Authorization HTTP request header.
- ERROR: warning autoload autoload in (trading /get my ebay selling). in core PHP
- curl -sS https://getcomposer.org/installer | php HOT 1
- Trying to fetch conditions value from category id
- How can this be used to get Leaf categories?
- Trading API: Not able to update price
- Uncaught GuzzleHttp\Exception\ServerException: Server error HOT 5
- Couldn't set Intetnational Return policy in AddFixedPriceItem method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebay-sdk-examples.