Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

oauth2 request returns no such host is known

Posted on by 75

We have the Azure App Service set up to host a portal with an ASP.Net Core backend.
The Backend then connects to Business Central using OData V4 to Store and Retrieve data as required.
The portal has been running for over a year with no issue.

The problem we are facing:
We were using Basic Authentication until Saturday when our Business central Updated and Basic Authentication was no longer supported.
We updated our backend to make use of Microsoft.Identity.Client Library to get new OData Access Tokens to connect to Business Central.
We experienced issues with the request to get new tokens returning an error of "No such host is known", We figured it was an issue with the code and found another way to handle Access tokens.

Shortly after we noticed that all outgoing requests are throwing the same exceptions.
Both "HttpClient" and "HttpWebRequest" fail with the same error.

When Running on local development IIS we have no issues.

No changes were made to the App Service Configuration we had originally.
We don't have a VNet setup, My understanding is that this is only used to make requests to other resources on the Vnet and not to external services.
We also did not have any issues at all before without this setup.

Categories:
  • RE: oauth2 request returns no such host is known

    It is not answering your question, but according to my knowledge, Basic Authentication is not going away before BC 2022 wave 1 (to be released in April 2022).

    So why is Basic Authentication no longer supported in your version? (it is supposed to be, unless you are running some kind of NextMajor version?).

    https://www.kauffmann.nl/2021/01/07/deprecation-of-basic-auth-for-saas-has-been-postponed-to-2022/

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/deprecated-features-platform#accesskeys

    (i know you will have to implement OAuth2 soon anyway - but you still have a few months to get it working)

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: oauth2 request returns no such host is known

    Hello,

    If you are not getting further responses from the community, please consider to raise a ticket to Microsoft via your partner or CSP.

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans