microsoft / dev-proxy

Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.
https://aka.ms/devproxy
MIT License
531 stars 61 forks source link

[BUG]:Devproxy is not returning the response #899

Closed DivyaTheetlaPG closed 1 month ago

DivyaTheetlaPG commented 1 month ago

Description

config file ![Uploading config file.png…]() uploaded config file

Expected behaviour

req GET https://jsonplaceholder.typicode.com/posts api Passed through

Actual behaviour

not recording any response

Steps to reproduce

to check why the response is not getting recorded

Dev Proxy Version

0.21.0

Operating system (environment)

Windows

Shell

cmd

Configuration file

config file

Additional Info

No response

### Tasks
DivyaTheetlaPG commented 1 month ago

powershell request postman req cmd report attaching the calling the API from powershell and postman and the cmd

waldekmastykarz commented 1 month ago

Thanks for reporting the issue and sorry for the trouble. Could it be that your PowerShell sessions hasn't automatically picked up your system proxy settings? Could you please try running this to see if it makes a difference:

Invoke-WebRequest -Uri https://jsonplaceholder.typicode.com/posts -Proxy http://127.0.0.1:8000
DivyaTheetlaPG commented 1 month ago

Thanks for the quick reply, and it is working.