Quote:System.Net.Http.HttpRequestException: An error occurred while sending the request ?
Quote:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using FetchActor.Models; using Newtonsoft.Json; using System.Collections.ObjectModel; using System.Collections; namespace FetchActor { public partial class MainPage : ContentPage { HttpClient connection = new HttpClient(); MovieService movieService = new MovieService(); public MainPage() { InitializeComponent(); } private async void searchBarByActor_SearchButtonPressed(object sender, EventArgs e) { var _connection = await connection.GetStringAsync("https://api.themoviedb.org/3/search/keyword?api_key=ab3da1af35c55cc8b3780fbc9a2bf259&query=Charlize%20Theron&page=1"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)