Amazon-SP-API-CSharp icon indicating copy to clipboard operation
Amazon-SP-API-CSharp copied to clipboard

Unsuccessful LWA token exchange

Open malafalx91 opened this issue 2 years ago • 2 comments

Hi guys, for about 1 week on the machine in production, I'm having this error. It does not occur always but several times a day, considering that approximately every 10 minutes it is launched --> 'var orders = amazonConnection.Orders.GetOrders(serachOrderList);' To be safe I updated the Key and LWA. But it continues anyway. Solutions?

Error getting LWA Access Token System.IO.IOException: Unsuccessful LWA token exchange ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server. ---> System.Net.Sockets.SocketException: Unable to establish a connection. Incorrect response from the connected party after the time interval or no response from the connected host 52.46.146.126:443 in System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) in System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) in System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- in System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) in System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar) --- End of inner exception stack trace --- in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in RestSharp.RestClient.d__3.MoveNext() --- End of inner exception stack trace --- in FikaAmazonAPI.AmazonSpApiSDK.Runtime.LWAClient.d__15.MoveNext()

malafalx91 avatar Dec 07 '23 08:12 malafalx91

same exception

jjfjjmldhz avatar Dec 08 '23 04:12 jjfjjmldhz

I also see this fairly often, possibly related to high usage? Is anyone else seeing this or noted a pattern?

MojoJake avatar Apr 09 '24 18:04 MojoJake