Project

General

Profile

REST API Error in Xamarin Forms .NET

Added by Владимир Косякин about 3 years ago

When connecting to the RedMine Api, the android application gives an error "System.Net.WebException: 'An exception occurred during a WebClient request.'". Although the same code in the console c# application works. The mobile application worked stably until 2021.10.01, there were no errors. Nothing in the code has changed. Maybe someone has the same problem?


Replies (1)

RE: REST API Error in Xamarin Forms .NET - Added by Ernesto Kautz over 1 year ago

Владимир Косякин wrote:

When connecting to the RedMine Api, the android application gives an error "System.Net.WebException: 'An exception occurred during a WebClient request.'". Although the same code in the console c# application works. The mobile application worked stably until 2021.10.01, there were no errors. Nothing in the code has changed. Maybe someone has the same problem?

Hello,

The "System.Net.WebException: An exception occurred during a WebClient request" error in a Xamarin Forms .NET Android application when connecting to the RedMine API could be due to various reasons. Some possible causes to investigate are changes in the RedMine API itself, network-related issues, or updates to the Android operating system that might have affected the application's behavior.

Since the code was working stably until October 1, 2021, it's essential to check whether there have been any updates or changes to the RedMine API after that date. Additionally, review any network-related code to ensure it is handling connections and timeouts correctly.

It's also possible that the Xamarin.Forms or .NET libraries used in the Android application might have received updates that impact how WebClient requests are handled. Checking for version mismatches or known issues in those libraries could be helpful.

To pinpoint the exact cause of the issue, detailed logs and debugging in the Android application will be necessary. It's also worth seeking support from Xamarin.Forms and RedMine API communities to see if others have encountered a similar problem or found any solutions.

I hope the information may helps you.

    (1-1/1)