Postman unable to send a 'GET' request to SCP API services

|
  • 131
  • 6

Issue Description

User would like to use SCP API services to provision resources such as create tenant, create virtual machine and etc. User is using Postman as the tools. He able to send a 'POST' request to SCP API services but unable to send 'GET' request.

Error/Warning Information

When sending 'GET' request, it returns with error 'Error : socket hang up'. However, when using POST request, it able to return 200 OK response and get the token ID for the API services.


Handling Process

1. At end point, try to use 'curl' command at endpoint (In the troubleshooting session, we used MobaXterm as example).  'curl' is a command line tool to transfer data to or from a server. The format for the curl command will be as following:
Curl -X {GET or POST} {URL of the request} -H ‘X-Auth-Token: {Token ID}’ -k
As result, it can return the result means that the endpoint connection has no issue and SCP API services is running.

2. Suspect is caused by API tool (Postman) itself.

3. Try to clear the cache for Postman under View > Developer > Show DevTools (Current View) > Application > Clear site data.

4. After clear the cache, Postman able to send 'GET' request to SCP API services with response of 200.

Root Cause

1. When encounter this kind of issue, may use 'Curl' command to check at endpoint to verify whether the API service is running well. If it's returning result, it means the API service is running, and probably caused by the application itself.

2. For this case handling, Postman unable to send a 'GET' request due to there’s some remaining cache in the application, after clear the cache, it able to make the request.

Solution

Clear the data cache for POSTMAN itself.
Faisal Posted 18 May 2021 12:14
  
Thank you very much for the information ...
Faisal Posted 18 May 2021 12:14
  
Nice article ...
Faisal Posted 18 May 2021 12:15
  
Great info ...
Faisal Posted 18 May 2021 12:15
  
Very informative ...
Faisal Posted 18 May 2021 12:16
  
Nice guidance ...
Raza Islam Lv3Posted 25 Jul 2022 16:23
  
Nice guidance.

I want to write a case
Doc ID: 4322
Author: Jun_Sheng17
Updated: 2021-04-05 12:29
Version: