본문 바로가기
Programming/Etc.

"Cloud Agent Error: Can not send requests to localhost. Select a different agent." 오류 해결 방법

by 돌방로그 2023. 1. 30.


Postman에서 localhost로 REST API 호출시 에러 발생하는 경우

상황

Postman 사용 환경 구축 후, REST API 호출 테스트를 첫 시도하는 중에 아래 이미지와 같이 Agent 관련 오류가 발생하였습니다.

위 오류의 해결책으로 우측에 'Use Postman's Desktop Agent'를 제시하고 있습니다.

 

위 사진에 안내되는 오류 메세지를 텍스트로 써보자면 아래와 같습니다.

"Cloud Agent Error: Can not send requests to localhost. Select a different agent."

 

 

해결 방법

1. Postman 우측 하단에 위치한 'Agent'에서 사용할 Agent를 'Desktop Agent'로 선택

  • 혹은 위 이미지에서 오류 메세지 우측에 표시되는 'Use Postman's Desktop Agent' 를 클릭

2. 'Desktop Agent' 클릭시 Postman Desktop Agent Installer가 다운로드되도록 허용해줍니다.

 

3. 해당 Installer를 실행해준 후, Tray Icon에서 Postman이 정상적으로 실행되고 있는지 확인합니다.

 

4. API Test를 다시 시도하여 정상적으로 동작하는지 다시 확인합니다. 

 

 


댓글