Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Copilot Studio Skills Development
Unanswered

Error Message: The invalid uri content issue with reason: The Uri is invalid.

(2) ShareShare
ReportReport
Posted on by
 
I am creating my first agent. I am using the "HTTP request" option.
I have a flask app.py running. snippet of code below:
 
 
@app.route('/api/example', methods=['GET'])
def example():
    return "Hello, World!"
 
 
Below works in postman and in browser.
http://127.0.0.1:5000/api/send_email
 
Below also works
http://localhost:5000/api/example
 
For testing, putting in URL below worked in my agent.
 
What do I need to do to get my agent to call "api/example"?
Currently I get this error message:
Error Message: The invalid uri content issue with reason: The Uri is invalid. Error Code: InvalidUriContent Conversation Id:...
 
I do not want to publish Flask app.py to public site because I am still developing it.
TIA.
 
 
 
 
Categories:
  • ronaldwalcott Profile Picture
    3,820 Super User 2025 Season 2 on at
    Error Message: The invalid uri content issue with reason: The Uri is invalid.
    Here is an example of using a tunnelling tool with Visual Studio which should point you in the right direction of creating an approach How to use ngrok with Windows and Visual Studio to test webhooks | Twilio

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75 Super User 2025 Season 2