Skip to main content

Notifications

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,810 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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 >