Troubleshooting requests

If your API request is not behaving as expected, there can be many possible reasons. To find out what the problem is, you can use the Postman console to troubleshoot your request. This guide also lists common issues and their causes.

This guide specifically discusses troubleshooting API requests. To troubleshoot issues with the Postman app, see Troubleshooting app issues. To troubleshoot issues with Postman monitors, see Troubleshooting monitors.


Debugging in the console

Every request sent by Postman is logged in the console, so you can view the detail of what happened when you sent a request. This means you can use the Postman console to help debug your requests when an API isn't behaving as you expect. Keeping the console open while you work will increase the visibility of your network calls and log messages while debugging.

The Postman console logs the following information:

  • The primary request that was sent, including all underlying request headers, variable values, and redirects
  • The proxy configuration and certificates used for the request
  • Network information such as IP addresses, ciphers, and protocols used
  • Log statements and asynchronous requests from test or pre-request scripts
  • The raw response sent by the server before it is processed by Postman

Monitor results are logged to a separate console. For more information on how to view logs from a monitor run, see Viewing monitor results.

Opening the console

Open the console by selecting Console in the status bar at the bottom left of Postman. In the Postman app, you can also select ⌘+Option+C or Ctrl+Alt+C.

Open the console

Viewing request errors from the console

You will see an error message if Postman isn't able to send your request, or if it doesn't receive a response from the API you sent the request to. This message will include an overview of the issue and a link to the console, where you can access detailed information about the request.

Request not sent

Select View in Console to see the request detail in the console and find out more about what went wrong.

Error in Console

In the console, you will see network information, request and response headers and body for each request, together with any console output messages coming from your scripts.

Filter by log message type under All Logs. Select Three dots icon to toggle timestamps and network information on or off.

Console options

The console will log the last 5000 messages and 24 hours by default. Select Clear to empty the list.

Using log statements

Using log statements at appropriate locations in your test scripts can help you debug your requests. Postman accepts the following log statements:

  • console.log()
  • console.warn()
  • console.error()

Console info

Common issues

If your issue with sending a request is not listed here, see Getting help for information how to to contact Postman support.

Issue Resolving the issue
Connectivity If Postman fails to send your request, you may be experiencing connectivity issues. Check your connection by attempting to open a page in your web browser.
Firewalls Some firewalls may be configured to block non-browser connections. If this happens you will need to contact your network administrators for Postman to work.
Proxy configuration If you are using a proxy server to make requests, check your configuration. By default, Postman uses the proxy settings configured in your operating system's network settings. The Postman console will provide debugging information regarding proxy servers.
SSL certificates You may experience issues using HTTPS connections. You can turn off SSL certificate verification in Settings by selecting Settings icon > Settings > General. If that does't help, your server might be using a client-side SSL connection, which you can configure in Settings icon > Settings > Certificates. Use the Postman console to ensure that the correct SSL certificate is being sent to the server.
Client certificates Client certificates may be required for your API server. You can add a client certificate in Settings by selecting Settings icon > Settings > Certificates.
Incorrect request URLs If you are using variables or path parameters with your request, make sure the final address is structure correctly by opening the console, which will display the URL your request was sent to when it executed. Unresolved request variables can result in invalid server addresses.
Incorrect protocol Check if you're using https:// instead of http:// in your URL (or the opposite).
Short timeouts If you configure a short timeout in Postman, the request could be timing out before completion, resulting in an error. Try increasing the timeout to avoid this issue in Settings by selecting Settings icon > Settings > General.
Invalid responses If your server sends incorrect response encoding errors, or invalid headers, Postman may fail to interpret the response.
TLS version Postman supports TLS version 1.2 and higher, which may not be supported if you are using an older browser or operating system.
Postman errors It is possible that Postman might be making invalid requests to your API server. You can confirm this by checking your server logs, if available. If you believe this is happening, contact the Postman team using the GitHub issue tracker.

Getting help

If you are still having problems with your request, there are a few options for you to get help:

  • Ask for community help in the Postman forum.
  • If you think the problem is with the Postman app, search the issue tracker on GitHub to check if someone has already reported the issue and whether there is a known solution.
  • If you need to include confidential data, file a ticket with Postman support, including your console logs.

Last modified: 2021/12/22