Reputation: 11
I have a data provider server that response with some faulty json string to refresh token (HTTP). This cause my software to disconnect from the web-socket (different url). The desired behavior is to retry refreshing and if fails than to reconnect from scratch to the providers web-socket using a new login message to authorization http server endpoint.
Is it possible to intentionally redirect a specific URL/URI to an internal server on my local server and emulate as if the faulty message was sent from the providers authorization http server endpoint? (it takes two days to reproduce this bug on my providers authorization) I wish to rapidly get this error so I could build exception handling on my server and code a retry code to recover from this bug (I can not access the providers server so I cant fix their bug) . Thanks Ori
what I tried: I addressed this question to the support portal of my data provider but it is not fixed until now. I must build some resilient code to recover from the crash that happens when this bug influence my code/system.
Upvotes: 0
Views: 322