271 questions
0
votes
1
answer
489
views
Unsupported grant type exception on Flurl POST
I am making a POST to a client authentication endpoint with an encoded auth header and I receive
Unsupported grant type exception. Speaking with the client, they say that the request Body should be '...
0
votes
1
answer
835
views
ASP.NET Core 5.0 Web API deployed in App service call third party API fails intermittently and raise 500 (Internal Server Error)
ASP.Net Core Web API Call Thirds party API fails intermittently.
The following exception raises intermittently when load test with postman.
"Call failed with status code 500 (Internal Server ...
0
votes
0
answers
58
views
'WithOAthBearerToken' is not a member of string
I'm using Flurl to connect to an API site, I need to do a Post and Put to create a new record and update, I have two different functions for each operation, this is one
Public Async Function ...
0
votes
2
answers
1k
views
Why task cancellation takes so long in Flurl.Http DownloadFileAsync / HttpClient GetAsync
While writing a class to download images from a server in parallel (employing a consumer/producer pattern backed by the DataFlow TPL library), using an ActionBlock and Flurl.Http facility method ...
3
votes
1
answer
676
views
Am I safe from thread pool starvation/socket issues if I use Flurl in a service thats registered as Transient?
Let's say I have a simple service that's registered as a Transient in Startup, and I use Flurl like so:
public async Task DoStuff()
{
string url = "some valid Url";
await ...
1
vote
0
answers
908
views
Polly Library - how to fallback to alternate domain name
I'm using the Polly along with Flurl to perform GET and POST operations to a variety of endpoints.
One of the operations that is done is a POST to ElasticSearch. We have serveral ES clusters, and what ...
0
votes
1
answer
660
views
Flurl Http GetAsync() - How to verify response text?
I am struggeling with Flurl.Http to verify the response text of a GetAsync() request.
My code:
var resp = await "https://.../version"
.GetAsync();
Assert.Equal(200, resp....
2
votes
1
answer
198
views
Observable's LastAsync() deadlocks in console app
When using IObservable.LastAsync() to force my console app to wait on the result of an API call using Flurl, that API call is never made and the main thread deadlocks and never returns from LastAsync()...
1
vote
1
answer
472
views
Using Flurl to send a list of files to an asp.net core's IFormFileCollection
I have an endpoint defined like this:
[HttpPost]
public async Task<ActionResult> Post( ... [FromForm] IFormFileCollection images) { }
Posting using PostMultipartAsync works well for individual ...
2
votes
1
answer
774
views
Using Flurl's OnError to check for custom response headers in ASP.NET Core Web API
I am developing a sort of middleware API, which is meant to connect to various systems. I am using the Flurl library to make requests to the individual systems.
One of these systems sometimes returns ...
0
votes
0
answers
23
views
How to use Proxy with Flurl or HttpClient? [duplicate]
I'm a big fan of HttpClient, especially the Flurl wrapper. However, I have the following problem. I access an API resource, where they limit the number of requests per IP per day. I thought of a ...
0
votes
0
answers
7k
views
The requested name is valid, but no data of the requested type was found: GET - Flurl .NET Core
I wrote an .NET core API project that connects to the following URL using Flurl to pull the latest events for our organization:
https://webapi.legistar.com/v1/myclient/Events?$filter=EventDate+ge+...
3
votes
1
answer
860
views
Cannot Configure Flurl to use Polly PolicyHandler
I have a .NET HostedService which uses dependency injection. My client factory creates a policy handler and in DI I configure Flurl to use the factory. In debug mode I can see that clients are ...
1
vote
0
answers
467
views
Stream HttpConnection.ChunkedEncodingReadStream as PDF to browser
How can a HttpConnection.ChunkedEncodingReadStream be stream directly to browser as PDF ??
PDF file can be as large as 200MB.
In snippet below, ChunkedEncodingReadStream is saved to temp file first, ...
1
vote
1
answer
321
views
Flurl with Azure AD Authentication
I'm trying to integrate Azure AD Authentication into a blazor WASM hosted app. I've got it working correctly with the default HTTP client, but I'd like to use Flurl.
This is what I have with the ...
0
votes
1
answer
274
views
Flurl deserialization issues when calling .NET Web API
Currently creating a Xamarin Mobile App which uses an ASP.NET Web API, however, I'm having issues de-serializing the data on the app side.
I've tried a multitude of ways none of which I can get to ...
0
votes
0
answers
198
views
.net standard- how to use flurl with polly
In .net standard if Polly can be used with flurl?
I'm trying to use Polly circuit breaker in .net standard project with flurl.
I see in .net core ther is a way to use it. But with .net standard I'm ...
0
votes
1
answer
164
views
Is There a way to resume a download using Flurl framework?
I am using the Flurl framework to call web service methods.
One of this method returns a file content as a Stream using FileStreamActionResult as a return value of my web service.
On the client side I ...
0
votes
1
answer
422
views
WithHeader do not works while trying to add User-Agent
I am trying to add an agent to Flurl(Flurl.Http.2.4.2) request using the code below
var url = new Url(downloadUrl);
url.WithHeader("User-Agent", "MyAgent/1.9");
var response = ...
0
votes
1
answer
587
views
How to get a response cookie with flurl
How to get a response cookie with flurl? I've searched for some references and studied on flurl.dev but still confused how to apply them. sorry I am not a programmer, I still have a lot to learn.
...
2
votes
1
answer
1k
views
Problems catching exception from http flurl client
I have a rest api with .net5, which has a global exception filter, and returns an ErrorMessage object in case of exceptions.
I call the api from a WinForms .net framework 4.8 application and the ...
0
votes
1
answer
859
views
JSON:API specification filter parameters with Flurl HTTP
We use JSON:API specification on our API. Currently having issues with formatting the filter params to the specification using Flurl in C#.
Example:
var url = await Helpers.GetAPIPath()
...
0
votes
1
answer
211
views
ABP: FlurlHttpException covers the UserFriendlyException
I use ABP as a server and a mobile app in Xamarin Forms.
In my Xamarin Forms I call through Flurl my api.
My api throws a UserFriendlyException. It works well through swagger UI browser.
But in my ...
0
votes
2
answers
322
views
Can't figure out how to store data from API call [duplicate]
This is my first time asking a question. I've been trying to get this working for too long. I've looked over some similar posts but just can't quite crack it.
I'm trying to make an API call in c# ...
2
votes
2
answers
970
views
Nested values with POST using Flurl
So I'm a Ruby dev messing with C# and trying to figure out how to use Flurl with my endpoint.
Here's the JSON I can pass successfully with Ruby.
{
type: "workorder.generated",
data:...