Loading

How to Get Verbose (DEBUG) Information From Anypoint CLI v4

公開日: Mar 2, 2024
ステップ
GOAL

When using the console tool anypoint-cli-v4 to interact with the Anypoint Plaform and you are experiencing issues, the Support team may request that you provide 'verbose' or 'DEBUG' logs, which provide additional information for troubleshooting.


PROCEDURE

The anypoint-cli-v4 tool is based on Node.js, which provides a 'DEBUG' console utility, which helps log debug information for this Node based tool, such as HTTP requests and responses.

To use this, in the command line, you need to add DEBUG=* ahead of the actual command that you want to debug, for example, to debug the command

anypoint-cli-v4 designcenter project upload test1  /opt/tmp/api

you should run the following command:

DEBUG=* anypoint-cli-v4 designcenter project upload test1  /opt/tmp/api

The example above will enable DEBUG logs for the request and http modules.

Note: Example of verbose information

 
> designcenter project upload test1  /opt/tmp/api
REQUEST { method: 'GET',
  json: true,
  strictSSL: false,
  baseUrl: 'https://anypoint.mulesoft.com',
  timeout: 60000,
  callback: undefined,
  url: '/designcenter/api-designer/projects',
  headers: 
   { 'User-Agent': 'Anypoint-CLI/2.1.0-beta.3',
     Authorization: 'bearer 3422ca7c-0fab-xxxxx',
     'x-owner-id': '0e7a677b-xxxxxxxxxxx',
     'x-organization-id': 'aa5xxxxxxxxxxxxxxx',
     'X-ANYPNT-ORG-ID': 'aa51bc87-xxxxxxxxxxxxxxxxx',
     'X-ANYPNT-ENV-ID': '549xxxxxxxxxxxxxxxxxxx' },
  transform: undefined,
  simple: true,
  resolveWithFullResponse: false }
REQUEST make request https://anypoint.mulesoft.com/designcenter/api-designer/projects
HTTP 89994: call onSocket 0 0
HTTP 89994: createConnection anypoint.mulesoft.com:443:::::::false: { servername: 'anypoint.mulesoft.com',
 

 

ナレッジ記事番号

001116041

 
読み込み中
Salesforce Help | Article