'Does .Net Core 2.1 support HTTP/2 requests?

I am working to gRPC in my .Net Core 2.1 application, But when i send a request the server throws an error stating

Connection id "" bad request data: "Unrecognized HTTP version: 'HTTP/2.0'

  • Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Unrecognized HTTP version: 'HTTP/2.0'
  • Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.RejectUnknownVersion(Byte* version, Int32 length)
  • Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.ParseRequestLine(TRequestHandler handler, Byte* data, Int32 length)
  • Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser1.ParseRequestLine(TRequestHandler handler, ReadOnlySequence1& buffer, SequencePosition& consumed, SequencePosition&


Solution 1:[1]

It seems like Each day(every 24 hours), QuickBooks Online will return a new Refresh Token for every Refresh Token API call. Which means if a new refresh token is returned, the previous one will be forced to expire. For more info please refer to below posts:

https://help.developer.intuit.com/s/question/0D50f000051WZUGCA4/refresh-token-is-expiring-each-day-instead-of-lasting-100-days

https://help.developer.intuit.com/s/article/Validity-of-Refresh-Token

If you would want to update the Refresh token for every ADF pipeline run, then you may have to have another process or a web activity to get the Updated/latest refresh token using QuickBooks/Intuit REST API's and parameterize the refresh token and access token fields in Quickbooks linked service. By parameterizing the Quickbook linked service, you can get the latest access and refresh token using web activity in ADD and pass those values to the subsequent activity where Quickbooks connector is being using.

To explore about parameterizing your linked service, please refer to this doc: https://docs.microsoft.com/en-us/azure/data-factory/parameterize-linked-services?tabs=data-factory

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KranthiPakala-MSFT