Summary
Error message ‘Internal Server Error: class io.airbyte.api.model.generated.WorkspaceReadList cannot be cast to class io.airbyte.api.client.model.generated.WorkspaceReadList’ when trying to access Airbyte API
Question
Hello Team
I’m facing this error when trying to use the api.
Docker-compose OSS, version 0.51.0
{"message":"Internal Server Error: class io.airbyte.api.model.generated.WorkspaceReadList cannot be cast to class io.airbyte.api.client.model.generated.WorkspaceReadList (io.airbyte.api.model.generated.WorkspaceReadList and io.airbyte.api.client.model.generated.WorkspaceReadList are in unnamed module of loader 'app')","exceptionClassName":"java.lang.ClassCastException","exceptionStack":["java.lang.ClassCastException: class io.airbyte.api.model.generated.WorkspaceReadList cannot be cast to class io.airbyte.api.client.model.generated.WorkspaceReadList (io.airbyte.api.model.generated.WorkspaceReadList and io.airbyte.api.client.model.generated.WorkspaceReadList are in unnamed module of loader 'app')","\tat io.airbyte.server.apis.publicapi.services.UserServiceImpl.getAllWorkspaceIdsForUser(UserService.kt:45)","\tat io.airbyte.server.apis.publicapi.services.ConnectionServiceImpl.listConnectionsForWorkspaces(ConnectionService.kt:198)","\tat io.airbyte.server.apis.publicapi.controllers.ConnectionsController.listConnections$lambda$10(ConnectionsController.kt:253)","\tat io.airbyte.server.apis.publicapi.apiTracking.TrackingHelper.callWithTracker(TrackingHelper.kt:107)","\tat io.airbyte.server.apis.publicapi.controllers.ConnectionsController.listConnections(ConnectionsController.kt:252)","\tat io.airbyte.server.apis.publicapi.controllers.$ConnectionsController$Definition$Exec.dispatch(Unknown Source)","\tat io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:371)","\tat io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:594)","\tat io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:303)","\tat io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111)","\tat io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:103)","\tat io.micronaut.http.server.RouteExecutor.lambda$executeRoute$14(RouteExecutor.java:659)","\tat reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:49)","\tat reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62)","\tat reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194)","\tat io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$init$0(ReactorInstrumentation.java:62)","\tat reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)","\tat reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)","\tat io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53)","\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)","\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)"]}```
<br>
---
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1714645114161229) if you want to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["error", "airbyte-api", "internal-server-error", "classcastexception"]
</sub>