Xamarin RestSharp POST method throwing request timeout error and name resolution error
There are several things you can try:
- Ensure all packages are up-to-date
- Use Fiddler to view network traffic and check the request going out and the response you are receiving. A tutorial can be found here
- Check that your request URL is complete (including the trailing '/' character for example), sometimes forgetting this causes a redirect and
HttpClient
sometimes has issues with that - Replace
RestSharp
client with basicSystem.Net.HttpClient
. This solution gives you less high-level approach, but you can see if the problem persists