All Ideas

Idea Details

Post an Idea
3,890  Points
Not Planned
No plans to implement idea.

View Callout Request and Response XML in Sandbox

ALM

Allow us to view the request and response xml from a callout to a web service in Sandbox environments. This is all that we see in the debug logs inside of Sandbox orgs: line 156, column 13: Sending callout request line 156, column 13: Reading callout response This is a huge inconvenience when developing. Whenever there is an issue, it would take sooooooooo much less time to debug something if I was able to see the callout request and response. Me: Hey Fred, I'm getting this error when calling your service. Fred: What is the exact request you are sending? Me: *Lowers head in embarrassment* I don't have that. Salesforce.com doesn't capture the request xml being sent out or the response xml coming back in their Sandbox.

Merge Idea · Flag

Latest Comment from Salesforce

  • Josh Kaplan - 4 years ago

    We can't do this without blowing up the debug logs. Debug logs can only be 2MB, and your request and/or response can be 12MB.  Even if it's only 1MB each, that's the end of your debug log.

    We have the same issue with String.  If we wrote out the value of each string every time it was changed, the logs would be consumed by the string variables. For these, we truncate, so you can get an idea of the contents of the variable.  A truncated request or response would be nothing but frustrating, as all you'd get would be the first part of the header.

    If you know your request or response is small, and won't consume your entire debug log, you can output the body directly by calling something like system.debug(req.getBody()).
  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.