Skip to content

--allowed-errors option missing #717

Closed

Description

@martinlingstuyl

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

https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/how-to/simulate-errors-microsoft-graph-apis#configure-errors-to-simulate

Page URL

https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/how-to/simulate-errors-microsoft-graph-apis

Content source URL

https://github.com/MicrosoftDocs/microsoft-cloud/blob/main/docs/dev/dev-proxy/how-to/simulate-errors-microsoft-graph-apis.md

Author

@waldekmastykarz

Document Id

cabe424a-1dbb-fd37-3752-4bc706f1016a

Activity

  1. waldekmastykarz commented on May 16, 2024

    @waldekmastykarz
    Collaborator

    Can you share the contents of your devproxyrc.json file?

  2. martinlingstuyl commented on May 16, 2024

    @martinlingstuyl
    Author

    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"
    }
  3. waldekmastykarz commented on May 16, 2024

    @waldekmastykarz
    Collaborator

    You're using the GenericRandomErrorPlugin. --allowed-errors is specific to the GraphRandomErrorPlugin: https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/technical-reference/graphrandomerrorplugin

  4. waldekmastykarz commented on May 16, 2024

    @waldekmastykarz
    Collaborator

    Hi @waldekmastykarz, here it is, but does that matter for a missing option?

    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.

  5. martinlingstuyl commented on May 16, 2024

    @martinlingstuyl
    Author

    💡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!

  6. waldekmastykarz commented on May 16, 2024

    @waldekmastykarz
    Collaborator

    All good! Better safe than sorry. Thanks for reaching out

  7. locked and limited conversation to collaborators on Jun 4, 2025
  8. converted this issue into a discussion #1226 on Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions