web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The request hostname i...
Power Automate
Unanswered

The request hostname is invalid.

(0) ShareShare
ReportReport
Posted on by 7

error : Action 'Send HTTP_Request_V2_' failed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Hostname</h2>
<hr><p>HTTP Error 400. The request hostname is invalid.</p>
</BODY></HTML>

_0-1692176115824.png_1-1692176213325.png

I know it's a problem with the hostname. Please tell me the solution after that.
Premium connectors are not available.
Should I call the Microsoft Graph API? If so, please let me know how. Azure? I created the app name and client id at
graph.microsoft.com. What should I do next?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @hf,


    This specific HTTP 400 not found error is caused by the trailing space/newline character. You have a large white gap a the end of the value in the URI field.

     

    Below is an example how to reproduce the Invalid Hostname error (click on the gif to see it in higher resolution).

     

    invalidhostnamefix.gif

     

    However, the Send an HTTP request V2 from the Groups connector also only supports Graph API calls with the groups resources. When you fix the Invalid hostname error you will get another error because of this limitation.

    URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: groups.

     

    You are using the teams type of resource. That's why I would suggest to use the HTTP connector action instead.

  • hf Profile Picture
    7 on at

    Thank you for your reply!
    Thanks to you, I managed to fix the problem.

    However, when I made a channel mention, the following error was output. You can expect that the variable in the Body is the cause, but is the URL part bad?
    Thank you for your support.

     

    Error:Unable to read JSON request payload. Please ensure Content-Type header is set and payload is of valid JSON format.

    _6-1692238367234.png

     

    _0-1692238074262.png

    _1-1692238081967.png

    _2-1692238109286.png_3-1692238145248.png_4-1692238155359.png_5-1692238170882.png

    _7-1692238608496.png

     

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @hf,

     

    That could be caused by the " characters for the the title and href attributes of your <a> HTML tag.

     

    Have you tried escaping those quotes by using backslashes?

    <a title=\"Test Title\" href=\"https://teams.microsoft.com\">Label</a>

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard