You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running dev proxy in docker - "An error occurred in a plugin" #1401
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 trace to see if you can get more information about what might be wrong.
with logging level set to 'trace', the following is captured:
req ╭ GET https://graph.microsoft.com/v1.0/me
time │ 10/01/2025 21:56:16 +00:00
trce │ MockResponsePlugin: BeforeRequestAsync called
trce │ MockResponsePlugin: ReplacePlaceholders called
fail │ An error occurred in a plugin
pass ╰ Passed through
req ╭ GET https://graph.microsoft.com/v1.0/me
time │ 10/01/2025 22:01:59 +00:00
trce │ MockResponsePlugin: BeforeRequestAsync called
skip │ MockResponsePlugin: No matching mock response found
trce │ MockResponsePlugin: Left BeforeRequestAsync
pass ╰ Passed through
OK, so in your mocks you have https://graph.microsoft.com/v1.0/me?* (notice the trailing ? just before the wildcard). When sending a request to https://graph.microsoft.com/v1.0/me without the question mark, it won't match your mock and should pass through, just as you're seeing. However, that doesn't explain the error. Let us investigate what's going on. Thanks again for letting us know.
Unfortunately, I can't reproduce your issue. After starting the Dev Proxy container using the exact command you shared, and then calling Graph using curl -ikx http://127.0.0.1:8000 https://graph.microsoft.com/v1.0/me I'm seeing:
req ╭ GET https://graph.microsoft.com/v1.0/me
time │ 10/02/2025 06:03:12 +00:00
skip │ MockResponsePlugin: No matching mock response found
pass ╰ Passed through
Can you try to run /app/devproxy/devproxy --version in your container to confirm which version you're running?
Activity
waldekmastykarz commentedon Oct 1, 2025
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
traceto see if you can get more information about what might be wrong.gavspeed commentedon Oct 1, 2025
Hi !
In the command I run, it's "ghcr.io/dotnet/dev-proxy:latest" so i'm assume that's lastest available?
docker run command i'm using:
attaching "devproxyrc.json" and "mocks.json"
devproxyrc.json
mocks.json
gavspeed commentedon Oct 1, 2025
with logging level set to 'trace', the following is captured:
req ╭ GET https://graph.microsoft.com/v1.0/me
time │ 10/01/2025 21:56:16 +00:00
trce │ MockResponsePlugin: BeforeRequestAsync called
trce │ MockResponsePlugin: ReplacePlaceholders called
fail │ An error occurred in a plugin
pass ╰ Passed through
gavspeed commentedon Oct 1, 2025
req ╭ GET https://graph.microsoft.com/v1.0/me
time │ 10/01/2025 22:01:59 +00:00
trce │ MockResponsePlugin: BeforeRequestAsync called
skip │ MockResponsePlugin: No matching mock response found
trce │ MockResponsePlugin: Left BeforeRequestAsync
pass ╰ Passed through
waldekmastykarz commentedon Oct 2, 2025
OK, so in your mocks you have
https://graph.microsoft.com/v1.0/me?*(notice the trailing?just before the wildcard). When sending a request tohttps://graph.microsoft.com/v1.0/mewithout the question mark, it won't match your mock and should pass through, just as you're seeing. However, that doesn't explain the error. Let us investigate what's going on. Thanks again for letting us know.waldekmastykarz commentedon Oct 2, 2025
Unfortunately, I can't reproduce your issue. After starting the Dev Proxy container using the exact command you shared, and then calling Graph using
curl -ikx http://127.0.0.1:8000 https://graph.microsoft.com/v1.0/meI'm seeing:Can you try to run
/app/devproxy/devproxy --versionin your container to confirm which version you're running?