You need to sign in to do that
Don't have an account?
Andrey Maksimov
Debug Managed Package Callouts
hi there,
i am developing some code to cover missed pieces of official Zendesk-SFDC integration. so i decided to use an open-source lib to utilize the Zendesk API, it's available as a managed package.
in the debug logs (all set to FINEST) i am getting the following exception related to HTTP callouts sent by the package:
i know, i can't see System.debug() output in installed managed package. but is it possible to check contents of the callout requests and responses?
if not, do you know other ways to work this out?
i am developing some code to cover missed pieces of official Zendesk-SFDC integration. so i decided to use an open-source lib to utilize the Zendesk API, it's available as a managed package.
in the debug logs (all set to FINEST) i am getting the following exception related to HTTP callouts sent by the package:
09:42:07.0 (993475801)|METHOD_EXIT|[138]|01p160000058u69|zdapiv1.ZendeskOrganizationsAPI.createOrganization(zdapiv1.ZendeskTypes.ZOrganization) 09:42:07.0 (993491523)|EXCEPTION_THROWN|[147]|zdapiv1.ZendeskResponseException: Zendesk API Error (422, Unprocessable Entity) ERR=RecordInvalid Record validation errors 09:42:07.0 (993498031)|METHOD_EXIT|[117]|01p160000058u6k|ZdSync.createOrg(Account) 09:42:07.0 (993503252)|SYSTEM_MODE_EXIT|false 09:42:07.0 (993511753)|EXCEPTION_THROWN|[119]|zdapiv1.ZendeskResponseException: Zendesk API Error (422, Unprocessable Entity) ERR=RecordInvalid Record validation errors 09:42:07.0 (993774067)|FATAL_ERROR|zdapiv1.ZendeskResponseException: Zendesk API Error (422, Unprocessable Entity) ERR=RecordInvalid Record validation errors Class.zdapiv1.ZendeskConnection.sendRequest: line 171, column 1 Class.zdapiv1.ZendeskOrganizationsAPI.createOrganization: line 97, column 1sadly, the lib does not give error details in the exception just because it does not store 'details' structure.
i know, i can't see System.debug() output in installed managed package. but is it possible to check contents of the callout requests and responses?
if not, do you know other ways to work this out?
I tried to research this and found below link thought it could help you in some way.
http://salesforce.stackexchange.com/questions/15058/entering-managed-pkg-logging-level
Hope this helps you!
If this helps you please mark it solved.
Thanks and Regards
Sandhya
unfortunately, it looks like it's impossible to log CALLOUT_RESPONSE and CALLOUT_REQUEST events for managed packages.
the lowest log level for callouts to catch the events is INFO. and since i do not see the events with FINEST log level, the data is not available outside the package.
the only way is to reach the package developer to ask him provide additional info with the exception.