Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing Custom Exporters #9

Open
GirasolXimena opened this issue Aug 22, 2024 · 0 comments
Open

Error installing Custom Exporters #9

GirasolXimena opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GirasolXimena
Copy link

Exporter Name

Supernova-Studio/exporters

Description

When trying to create any custom exporter on /code/exporters/custom the following error occurs:

    Error thrown: BadRequest: [
  {
    "code": "invalid_union_discriminator",
    "options": [
      "SendPullRequest",
      "PullExporterBundle",
      "ResolveRepositoryBranch"
    ],
    "path": [
      "type"
    ],
    "message": "Invalid discriminator value. Expected 'SendPullRequest' | 'PullExporterBundle' | 'ResolveRepositoryBranch'"
  }
]

    Code: BadRequest

    Status: 400

    Fields: null

    Request ID: -

    Server time: -

    Network URL: https://api.supernova.io/api/v2/codegen/workspaces/19398/exporters

    Stack: Error: BadRequest: [
  {
    "code": "invalid_union_discriminator",
    "options": [
      "SendPullRequest",
      "PullExporterBundle",
      "ResolveRepositoryBranch"
    ],
    "path": [
      "type"
    ],
    "message": "Invalid discriminator value. Expected 'SendPullRequest' | 'PullExporterBundle' | 'ResolveRepositoryBranch'"
  }
]
    at i.fromNetworkResponse (https://app.supernova.io/_next/static/chunks/9373-b63948a4cbf2f0d6.js:1:211516)
    at iw.handleResponse (https://app.supernova.io/_next/static/chunks/9373-b63948a4cbf2f0d6.js:1:85153)

This bug originally happpened while trying to install a custom exporter for my org, but I have validated it occurs with the following URLs:

Reproducing a bug

  1. Go to custom exporters page /code/exporters/custom
  2. Click + New Custom Exporter
  3. Put any valid URL into input:
  4. Error occurs and banner shows on bottom of viewport

Current Behaviour

Custom exporter cannot be added or validated

Expected Behaviour

Custom exporter is able to be added and validated

@GirasolXimena GirasolXimena added the bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant