Code Monkey home page Code Monkey logo

Comments (12)

davidtsadler avatar davidtsadler commented on July 22, 2024 1

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.

nostah avatar nostah commented on July 22, 2024

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.

davidtsadler avatar davidtsadler commented on July 22, 2024

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.

davidtsadler avatar davidtsadler commented on July 22, 2024

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.

nostah avatar nostah commented on July 22, 2024

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.

davidtsadler avatar davidtsadler commented on July 22, 2024

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.

jamesmorris7 avatar jamesmorris7 commented on July 22, 2024

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.

davidtsadler avatar davidtsadler commented on July 22, 2024

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.

jamesmorris7 avatar jamesmorris7 commented on July 22, 2024

... 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.

MotorSportTeam avatar MotorSportTeam commented on July 22, 2024

What is authToken?

from ebay-sdk-examples.

delphiy avatar delphiy commented on July 22, 2024

Any idea how to get sold count after searching by keyword

Thanks

from ebay-sdk-examples.

sararabie avatar sararabie commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.