question

jmcgranahan avatar image
0 Likes"
jmcgranahan asked ·

"soap-fault: Internal error to the application"

Using sdk_trading_1019: ReviseInventoryStatusRequestType.php and ReviseFixedPriceItemRequestType.php When running through my PHP script using the about API from the Trading API, I am receiving numerous "soap-fault: Internal error to the application", but I do not know why. From my Google searching, it appears this has happened before and eBay pushed out a fix to the API, but I am seeing this with the 1019 PHP version. Please advise. Thank you!
trading apiPHPreviseinventorystatusinternal error to the application.soap-faultrevisefixedprice
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jmcgranahan avatar image
0 Likes"
jmcgranahan answered ·
eBay API code using: require_once 'sdk_trading_1019/ EbatNs_Session.php'; require_once 'sdk_trading_1019/ EbatNs_ServiceProxy.php'; require_once 'sdk_trading_1019/ EbatNs_DataConverter.php'; $session = new EbatNs_Session(); $session->setSiteId(0); $session->setUseHttpCompression(1); $session->setAppMode(0); $session->setDevId('DEVID'); $session->setAppId('APPID'); $session->setCertId('CERTID'); $session->setRequestToken('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $session->setTokenUsePickupFile(false); $session->setTokenMode(true); $proxy = new EbatNs_ServiceProxy($session, 'EbatNs_DataConverterUtf8'); require_once 'sdk_trading_1019/ ReviseInventoryStatusRequestType.php'; $reviseinventorystatusrequest = new ReviseInventoryStatusRequestType(); $inventorystatus = new InventoryStatusType(); $reviseinventorystatusrequest->addInventoryStatus($inventorystatus); $inventorystatus->setItemID("$itemid"); $inventorystatus->setQuantity("$numstock"); $reviseinventorystatusrequest->setVersion("1019"); $response = $proxy->ReviseInventoryStatus($reviseinventorystatusrequest); require_once 'sdk_trading_1019/ ReviseFixedPriceItemRequestType.php'; $revisefixedpriceitemrequest = new ReviseFixedPriceItemRequestType(); $item = new ItemType(); $revisefixedpriceitemrequest->setItem($item); $item->setItemID("$itemid"); $amount = new AmountType(); $item->setStartPrice($amount); $amount->setTypeValue("$adjustedprice"); $revisefixedpriceitemrequest->setVersion("1019"); $response2 = $proxy->ReviseFixedPriceItem($revisefixedpriceitemrequest); --------------------------------------------------------------------------------------- Expecting this response (or something similar): ReviseInventoryStatusResponseType Object ( [InventoryStatus:protected] => Array ( [0] => InventoryStatusType Object ( [SKU:protected] => B00D3IMESM [ItemID:protected] => 112201662828 [StartPrice:protected] => AmountType Object ( [value:protected] => 25.18 ) [Quantity:protected] => 37 ) ) [Timestamp:protected] => 2017-08-18T09:00:26.383Z [Ack:protected] => Warning [Errors:protected] => Array ( [0] => ErrorType Object ( [ShortMessage:protected] => Requested Quantity revision is redundant. [LongMessage:protected] => The existing quantity value is identical to the quantity specified in the request and, therefore, is not modified. [ErrorCode:protected] => 21917092 [SeverityCode:protected] => Warning [ErrorParameters:protected] => Array ( [0] => ErrorParameterType Object ( [Value:protected] => 112201662828 [attributeValues] => Array ( [ParamID] => ItemID ) ) [1] => ErrorParameterType Object ( [attributeValues] => Array ( [ParamID] => SKU ) ) ) [ErrorClassification:protected] => RequestError ) ) [Version:protected] => 1027 [Build:protected] => E1027_UNI_API5_18508833_R1 ) --------------------------------------------------------------------- Receiving on some instances: EbatNs_ResponseError Object ( [Ack:protected] => Failure [Errors:protected] => Array ( [0] => ErrorType Object ( [ShortMessage:protected] => [LongMessage:protected] => soap-fault: Internal error to the application. [ErrorCode:protected] => 90002 [UserDisplayHint:protected] => [SeverityCode:protected] => Error [ErrorParameters:protected] => [ErrorClassification:protected] => SystemError ) [1] => ErrorType Object ( [ShortMessage:protected] => [LongMessage:protected] => Internal error to the application. [ErrorCode:protected] => 10007 [UserDisplayHint:protected] => [SeverityCode:protected] => Error [ErrorParameters:protected] => [ErrorClassification:protected] => SystemError ) ) )
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sree_developersupport avatar image
0 Likes"
sree_developersupport answered ·
Hi @jmcgranahan, Thanks for your post. Can you please send us the Request and Response files for ReviseInventoryStatus and ReviseItem Calls? Please strip out the Auth Token from the request file. Best Regards, eBay Developer Support
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.