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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Custom connector error...
Copilot Studio
Suggested Answer

Custom connector error log for debugging

(1) ShareShare
ReportReport
Posted on by 40

Hi, I’m currently working in Copilot Studio and calling a custom connector API directly (not with Power Automate flows).

 

I’m encountering errors during the API call, but Copilot Studio only returns a very generic message (e.g. “Error 500", "Error 400") without any detailed logs or response body. This makes it difficult to identify the root cause.

 

Could you advise on:


  1. How to access full error logs or raw API responses within Copilot Studio?

  2. Whether there is a way to surface detailed error messages from the custom connector (e.g. response body, status code)?

  3. Any best practices for debugging custom connector calls directly inside Copilot Studio?


  4.  

     

Would appreciate any guidance on improving observability or debugging in this setup. Thanks!

I have the same question (0)
  • MS.Ragavendar Profile Picture
    7,162 Super User 2026 Season 1 on at
     
    You can test your agent in real-time using the activity map in the copilot studio.
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    Assisted by AI
    deepakmehta13a Profile Picture
    362 on at

    Hi,

    This is a pretty common limitation when working with custom connectors directly in Copilot Studio. I’ve run into the same thing where it only shows generic errors like 400 or 500, without the actual response details.

    Right now, Copilot Studio doesn’t expose full request/response logs. To see what’s really happening, it helps to test the connector outside Copilot Studio, either in the custom connector Test tab or through a simple Power Automate flow, where you can see the full outputs in run history.

    To improve error visibility, you can:

    • Return structured JSON responses from your API (even for errors)

    • Include fields like message, errorCode, etc.

    • Define proper response schemas in the connector

    For debugging, a couple of things that usually work well:

    • Use a Power Automate flow as a wrapper to capture and return the response

    • Add logging on the API side (Application Insights, server logs, etc.)

    • Test the API and connector separately before using it in Copilot

    So overall, since logging is limited in Copilot Studio, combining external testing + better API responses is usually the most practical way to debug.

    Hope this helps.

    If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario.

    If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 633

#2
Vish WR Profile Picture

Vish WR 301

#3
Haque Profile Picture

Haque 219

Last 30 days Overall leaderboard