Closed
Labels
Description
Type of issue
Code doesn't work
Feedback
The example mentioned in the docs does not work. It appears the option --allowed-errors isn't available. I also don't see it when running devproxy --help
Page URL
Content source URL
Author
Document Id
cabe424a-1dbb-fd37-3752-4bc706f1016a
Activity
waldekmastykarz commentedon May 16, 2024
Can you share the contents of your devproxyrc.json file?
martinlingstuyl commentedon May 16, 2024
Hi @waldekmastykarz, here it is, but does that matter for a missing option?
{ "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.17.1/rc.schema.json", "plugins": [ { "name": "RetryAfterPlugin", "enabled": true, "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll" }, { "name": "GenericRandomErrorPlugin", "enabled": true, "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll", "configSection": "genericRandomErrorPlugin" } ], "urlsToWatch": [ "https://graph.microsoft.com/*", "https://jsonplaceholder.typicode.com/*" ], "genericRandomErrorPlugin": { "errorsFile": "devproxy-errors.json" }, "rate": 50, "labelMode": "text", "logLevel": "information", "newVersionNotification": "stable" }waldekmastykarz commentedon May 16, 2024
You're using the
GenericRandomErrorPlugin.--allowed-errorsis specific to theGraphRandomErrorPlugin: https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/technical-reference/graphrandomerrorpluginwaldekmastykarz commentedon May 16, 2024
A while back, we refactored options, so that plugin-specific options are only exposed, when the corresponding plugin is enabled. Otherwise, you'd get an option that doesn't affect how Dev Proxy work which would be confusing.
martinlingstuyl commentedon May 16, 2024
💡Ah, I see now! Sorry, I've just completely misread this. It turns out there is no issue at all, except between the chair and the screen over here 😅 Let's close this ASAP!
waldekmastykarz commentedon May 16, 2024
All good! Better safe than sorry. Thanks for reaching out