Running dev proxy in docker - "An error occurred in a plugin" #1406
|
Help please! I followed the steps described here to run dev proxy from docker container - https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/how-to/use-dev-proxy-in-docker-container I wish to use the mocks response feature. I have a mocks.json and devproxyyrc.json files configured. The mocks.json is a very simple example to start with like this one - https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/technical-reference/mockresponseplugin#mocks-file-examples Attempting to use postman (GET https://graph.microsoft.com/v1.0/me) and have configured postman to use a custom proxy pointing to 127.0.0.1:8000 The request hits the proxy but returns: req ╭ GET https://graph.microsoft.com/v1.0/me It may well be a mistake on my part, but any pointers you can help would be great 🙏 |
Replies: 7 comments 6 replies
|
Hey! Thanks for reaching out and sorry to hear you're running into a trouble. Could you please share with us your config file and tell us which version of Dev Proxy you're using so that we can see if we can reproduce it? Alternatively, you could also try to change the log level to |
|
Hi ! docker run command i'm using: attaching "devproxyrc.json" and "mocks.json" |
|
with logging level set to 'trace', the following is captured: req ╭ GET https://graph.microsoft.com/v1.0/me |
|
req ╭ GET https://graph.microsoft.com/v1.0/me |
|
OK, so in your mocks you have |
|
Unfortunately, I can't reproduce your issue. After starting the Dev Proxy container using the exact command you shared, and then calling Graph using Can you try to run |
|
Could this be the same issue that you're seeing? #1409 (comment) |

That was a bug that we introduced in v1.2.0 I believe. For now, you could downgrade to v1.1.0 which should solve the issue. We've just merged the bugfix yesterday and will do a beta release later today, which you could test too. Sorry for the trouble.