airbytehq / airbyte

The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
https://airbyte.com
Other
15.46k stars 3.98k forks source link

An unexpected error occurred. Please report this if the issue persists. (HTTP 500) #38180

Open amadirimov opened 4 months ago

amadirimov commented 4 months ago

Connector Name

docker-registry.nl2.exadel.com/elms/exadel-learning-management-system/destination-talent-lms

Connector Version

0.0.58

What step the error happened?

Other

Relevant information

I have upgraded Airbyte version from 0.40.32 to 0.59.1 ater that I started getting an error when I click to my connections (the issue is for not all my connections one connection looks good)

when I finish configuring connection in the end I am getting that error. (destination and source both are custom) I am getting that error when I click on tho connection from Admin Airbyte UI. image

Relevant log output

Sorry, something went wrong.
An unexpected error occurred. Please report this if the issue persists. (HTTP 500)

Error details:
{
  "url": "https://elms-airbyte.dev.exadel.dev/workspaces/5442e295-af53-487d-b189-9eb76b12a7ba/connections/d7d07984-a346-4890-997f-3efdecbf5889",
  "airbyteVersion": "0.59.1",
  "errorType": "HttpError",
  "errorConstructor": "Xy",
  "error": {
    "i18nKey": "errors.http.internalServerError",
    "i18nParams": {
      "status": 500
    },
    "name": "HttpError",
    "requestId": "a3w6TG23MXT78f7jGipK8",
    "request": {
      "url": "/api/v1/web_backend/connections/get",
      "method": "post",
      "headers": {
        "Content-Type": "application/json"
      },
      "data": {
        "connectionId": "d7d07984-a346-4890-997f-3efdecbf5889",
        "withRefreshedCatalog": false
      }
    },
    "status": 500,
    "response": {
      "message": "Internal Server Error: Index 0 out of bounds for length 0",
      "exceptionClassName": "java.lang.IndexOutOfBoundsException",
      "exceptionStack": [
        "java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0",
        "\tat java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)",
        "\tat java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)",
        "\tat java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)",
        "\tat java.base/java.util.Objects.checkIndex(Objects.java:385)",
        "\tat java.base/java.util.ArrayList.get(ArrayList.java:427)",
        "\tat io.airbyte.commons.server.handlers.helpers.CatalogConverter.ensureCompatibleDestinationSyncMode(CatalogConverter.java:404)",
        "\tat io.airbyte.commons.server.handlers.ConnectionsHandler.lambda$getConnectionAirbyteCatalog$3(ConnectionsHandler.java:816)",
        "\tat java.base/java.util.ArrayList.forEach(ArrayList.java:1596)",
        "\tat io.airbyte.commons.server.handlers.ConnectionsHandler.getConnectionAirbyteCatalog(ConnectionsHandler.java:815)",
        "\tat io.airbyte.commons.server.handlers.WebBackendConnectionsHandler.webBackendGetConnection(WebBackendConnectionsHandler.java:370)",
        "\tat io.airbyte.server.apis.WebBackendApiController.lambda$webBackendGetConnection$2(WebBackendApiController.java:107)",
        "\tat io.airbyte.server.apis.ApiHelper.execute(ApiHelper.java:28)",
        "\tat io.airbyte.server.apis.WebBackendApiController.webBackendGetConnection(WebBackendApiController.java:97)",
        "\tat io.airbyte.server.apis.$WebBackendApiController$Definition$Exec.dispatch(Unknown Source)",
        "\tat io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)",
        "\tat io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4232)",
        "\tat io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:271)",
        "\tat io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488)",
        "\tat io.micronaut.http.server.RouteExecutor.lambda$callRoute$6(RouteExecutor.java:465)",
        "\tat io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87)",
        "\tat io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211)",
        "\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)",
        "\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)",
        "\tat java.base/java.lang.Thread.run(Thread.java:1583)"
      ]
    }
  },
  "stacktrace": "HttpError: errors.http.internalServerError\n    at BEe (https://elms-airbyte.dev.exadel.dev/assets/core-MpcFfYhE.js:119:8356)",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
  "featureFlags": {}
}

Contribute

davigs commented 3 months ago

I have a same problem.

amadirimov commented 3 months ago

I hope someone from the Airbyte team will resolve it soon.

marcosmarxm commented 3 months ago

Hello all, I raised this problem to the team responsible for the API.

sachdevayash1910 commented 1 month ago

Facing the same issue on the latest Airbyte version as well