question

gregormannek avatar image
0 Likes"
gregormannek asked ·

Authentication-Token only a few minutes valid

Hello Everyone, we have programmed an .NET-ASP-Interface for the Software of a Customer, which is using the Ebay .NET SDK and communicates to the Trading API. Working fine since couple of months and nothing of the Code in this WebApplication has changed since the Beginning of the Interface. Some days ago the Authentication-Token began to be only valid for a short time. API suddenly says "Verification of the authentication token in the API request was unsuccessful". I create a new Token and everything is working fine. After a short time, the API says again that the Auhtentication Token is not valid. Can Anyone help me please ?!
authentication failedauth-tokenauth token is invalid
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.

rucksack.handel.ek avatar image
0 Likes"
rucksack.handel.ek answered ·

I can confirm that the access token is by far not valid for 7200 seconds as it states in the API response. I can't tell the exact expire second but not 7200, not 5000 nor 1000 seconds from creation.

· 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, Thanks for your reply. I checked your Seller ID: and found that the only App which has valid token is 235958(AppID). Can you please let us know if you are able to make calls from this AppID? Also, please specify the AppID that you are using to make calls. 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.

gregormannek avatar image
0 Likes"
gregormannek answered ·
@sree_developersupport ASP-WebForm, that makes the CALL ApiContext context = new ApiContext(); // TOKEN AN SHOP ANPASSEN if (Request.QueryString["shop"] != null) { context.ApiCredential.eBayToken = token.holeTokenZuShop(Request.QueryString["shop"]); shop = Request.QueryString["shop"]; } else { Response.Write("SHOP NICHT DEFINIERT"); return; } // SERVER context.SoapApiServerUrl = " https://api.ebay.com/wsapi";; // LOG context.ApiLogManager = new ApiLogManager(); string pfad = Server.MapPath("/logs/"); string filenameLog = shop + "_GetOrders_" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + "_" + DateTime.Now.Hour + DateTime.Now.Minute + DateTime.Now.Second + " _LOG.txt"; context.ApiLogManager.ApiLoggerList.Add(new FileLogger(filenameLog, true, true, true)); context.ApiLogManager.EnableLogging = true; // version context.Version = "817"; context.Site = SiteCodeType.Germany; DateTime CreateTimeFrom, CreateTimeTo; GetOrdersCall getOrders = new GetOrdersCall(context); getOrders.DetailLevelList = new DetailLevelCodeTypeCollection(); getOrders.DetailLevelList.Add(DetailLevelCodeType.ReturnAll); // aktuellen Zeitpunkt von GMT in UTC umwandeln (Deutsche Zeit zu E-Bay-Server-Zeit) CreateTimeTo = DateTime.Now.ToUniversalTime(); // Zeitraum der Abfrage // Zeitraum bestimmen int zeitspanneNegativ = 0; if(ZeitWert != 0) { zeitspanneNegativ = ZeitWert * -1; } if (zeitEinheit == "sekunden") { CreateTimeFrom = CreateTimeTo.AddSeconds(zeitspanneNegativ); } else if (zeitEinheit == "minuten") { CreateTimeFrom = CreateTimeTo.AddMinutes(zeitspanneNegativ); } else if (zeitEinheit == "stunden") { CreateTimeFrom = CreateTimeTo.AddHours(zeitspanneNegativ); } else if (zeitEinheit == "tage") { CreateTimeFrom = CreateTimeTo.AddDays(zeitspanneNegativ); } else { CreateTimeFrom = CreateTimeTo.AddDays(-1); } // PAGE if(Request.QueryString["page"] != null) { getOrders.Pagination = new PaginationType(); getOrders.Pagination.PageNumber = int.Parse(Request.QueryString["page"]); } getOrders.CreateTimeFrom = CreateTimeFrom; getOrders.CreateTimeTo = CreateTimeTo; getOrders.OrderStatus = OrderStatusCodeType.Completed; // Ausführen try { getOrders.Execute(); } catch (ApiException ex) { Response.Write(ex.Message); } What do you mean with User-ID ? USER_ID of the Customer: eckert-colorshop_de What do you need more?
· 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 @gregormannek, Thanks for your post. Can you please send us the request and response files? We would like to check the logs from our end. Also, can you please send us the ebay UserID or seller ID? Please remove the token and send it accordingly. 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.