![]() You can add a client certificate in Settings by selecting the settings icon then Settings > Certificates. Learn more about working with certificates.Ĭlient certificates may be required for your API server. Use the Postman Console to ensure that the correct SSL certificate is being sent to the server. If that doesn't help, your server might be using a client-side SSL connection, which you can configure by selecting the settings icon then Settings > Certificates. You can turn off SSL certificate verification in Settings by selecting the settings icon then Settings > General. You may experience issues using HTTPS connections. The Postman Console will provide debugging information regarding proxy servers. By default, Postman uses the proxy settings configured in your operating system's network settings. If you are using a proxy server to make requests, check your configuration. If this happens you will need to contact your network administrators for Postman to work. Some firewalls may be configured to block non-browser connections. Check your connection by attempting to open a page in your web browser. If Postman fails to send your request, you may be experiencing connectivity issues. If your issue with sending a request isn't listed here, see Getting help for information how to contact Postman support. ![]() Postman accepts the following log statements: Using log statements at appropriate locations in your test scripts can help you debug your requests. The Console will log the last 5,000 messages and 24 hours by default. Select the more actions icon to turn timestamps and network information on or off. The Postman Console displays network information and the request and response headers and body for each request, together with any Console output messages coming from your scripts.įilter by log message type under All Logs. Select View in Console to inspect the request details in the Console and find out more about what went wrong. There you can access detailed information about the request. This message includes an overview of the issue and a link to the Console. You will get an error message if Postman isn't able to send your request or doesn't receive a response from the API you sent the request to. In the Postman desktop app, you can use ⌘+Option+C or Ctrl+Alt+C to open the Postman Console in a new window. Open the Console by selecting Console in the Postman footer. For more information on how to view logs from a monitor run, see Viewing monitor results. Monitor results are logged to a separate console. The raw response sent by the server before it's processed by Postman.Log statements and asynchronous requests from test or pre-request scripts.Network information such as IP addresses, ciphers, and protocols used.The proxy configuration and certificates used for the request.The primary request that was sent, including all underlying request headers, variable values, and redirects.The Postman Console logs the following information: Keeping the Console open while you work will increase the visibility of your network calls and log messages while debugging. This means you can use the Console to help debug your requests when an API isn't behaving as you expect. ![]() ![]() Debugging in the ConsoleĮvery request sent by Postman is logged in the Postman Console, so you can view the detail of what happened when you sent a request. Select View in Console to get an overview of your request and to help identify the source of the issue. If Postman isn't able to send your request or doesn't receive a response, you will get a message with details about the error. Invalid characters are highlighted in the request method, URL (including the path), parameters, headers (including your key names), and body. Postman will indicate any whitespace or invalid characters in parts of your request that may not function as expected so that you can rectify your values. To troubleshoot issues with Postman Monitors, see Troubleshooting monitors. To troubleshoot issues with the Postman app, see Troubleshoot app issues. This guide specifically discusses troubleshooting API requests. This guide also lists common issues and their causes. To find out what the problem is, you can use the Postman Console to troubleshoot your request. If your API request isn't behaving as expected, there can be many possible reasons.
0 Comments
Leave a Reply. |