Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Could not get any response" response when using postman with subdomain

People also ask

Why I am getting could not send request in Postman?

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. 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.

How do I get the response in JSON format in Postman?

Pretty. The Pretty view formats JSON or XML responses so they're easier to view. Links inside Pretty view are highlighted, and selecting them can load a GET request in Postman with the link URL. For navigating large responses, select the down arrows next to a line to collapse large sections of the response.

Can we use https in Postman?

When you make an HTTPS request to a configured domain, Postman automatically sends the client certificate with the request. The certificate is sent using OpenSSL handling, and Postman doesn't modify the certificate. Postman won't send the certificate if you make an HTTP request.


First Go to Settings in Postman:

  1. Off the SSL certificate verification in General Tab:

  1. Off the Global Proxy Configuration and Use System Proxy in Proxy Tab:

  1. Make Request Timeout to 0 (Zero)

Configure Apache:

If above changes resulted in 404 response, then continue reading ;-)

Users that host their site locally (like with XAMP and/or WAMP), may be able to visit their virtual-sites using https:// prefixed address, but it's a lie, and to really enable SSL (for each virtual-site), configure Apache like:

  • Open httpd-vhosts.conf file (from Apache's conf/extras directory), in your preferred text-editor.

  • Change virtual-site's settings, into something like:

    <VirtualHost *:80 *:443>
        ServerName my-site.local
        ServerAlias *.my-site.local
        DocumentRoot "C:\xampp\htdocs\my-project\public"
    
        SSLEngine on
        SSLCertificateFile "path/to/my-generated.cert"
        SSLCertificateKeyFile "path/to/my-generated.key"
    
        SetEnv APPLICATION_ENV "development"
    
        <Directory "C:\xampp\htdocs\my-project\public">
            Options Indexes FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
    

    But of course, generate a dummy-SSL-certificate, and change all file-paths, like from "path/to/my-generated.cert" into real file-addresses.

  • Finally, test by visiting local-site in browser, but using http:// (without S) prefixed address; Apache should now give error like:

    Bad Request
    
    Your browser sent a request that this server could not understand.
    Reason: You're speaking plain HTTP to an SSL-enabled server port.
    Instead use the HTTPS scheme to access this URL, please.
    

I had the same issue. It was caused by a newline at the end of the "Authorization" header's value, which I had set manually by copy-pasting the bearer token (which accidentally contained the newline at its end)


If you get a "Could not get any response" message from Postman native apps while sending your request, open Postman Console (View > Show Postman Console), resend the request and check for any error logs in the console.

Thanks to numaanashraf


Hi This issue is resolved for me.

setting ->general -> Requesttimeout in ms = 0


If all above methods doesn't work check your environment variables, And make sure that the following environments are not set. If those are set and not needed by any other application remove them.

HTTP_PROXY
HTTPS_PROXY

Reference link


For me it was the http://localhost instead of https://localhost.