Error during source/destination upgrade

Summary

The user is encountering an IllegalArgumentException with the message ‘Unexpected value ‘archived’’ when attempting to upgrade a source or destination in their local Airbyte setup. The error occurs during the API call to list the latest source definitions.


Question

Hi,
I’m having trouble with my local setup. Everytime i’m trying to upgrade a source or a destination, this happens :

airbyte-server                    | 2024-03-05 06:46:45 ERROR i.a.s.a.ApiHelper(execute):49 - Unexpected Exception
airbyte-server                    | java.lang.IllegalArgumentException: Unexpected value 'archived'
airbyte-server                    |     at io.airbyte.api.model.generated.SupportLevel.fromValue(SupportLevel.java:54) ~[io.airbyte-airbyte-api-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.converters.ApiPojoConverters.toApiSupportLevel(ApiPojoConverters.java:253) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.buildSourceDefinitionRead(SourceDefinitionsHandler.java:110) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.lambda$toSourceDefinitionReadList$1(SourceDefinitionsHandler.java:147) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
airbyte-server                    |     at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.toSourceDefinitionReadList(SourceDefinitionsHandler.java:148) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.listLatestSourceDefinitions(SourceDefinitionsHandler.java:169) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.java:28) ~[io.airbyte-airbyte-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.server.apis.SourceDefinitionApiController.listLatestSourceDefinitions(SourceDefinitionApiController.java:119) ~[io.airbyte-airbyte-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.server.apis.$SourceDefinitionApiController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-server-0.50.54.jar:?]
airbyte-server                    |     at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:371) ~[micronaut-inject-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:594) ~[micronaut-inject-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:246) ~[micronaut-router-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111) ~[micronaut-router-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:103) ~[micronaut-http-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.http.server.RouteExecutor.lambda$executeRoute$14(RouteExecutor.java:659) ~[micronaut-http-server-3.10.1.jar:3.10.1]
airbyte-server                    |     at reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:49) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$init$0(ReactorInstrumentation.java:62) ~[micronaut-runtime-3.10.1.jar:3.10.1]
airbyte-server                    |     at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53) ~[micronaut-context-3.10.1.jar:3.10.1]
airbyte-server                    |     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
airbyte-server                    |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
airbyte-server                    |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
airbyte-server                    |     at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
airbyte-server                    | 2024-03-05 06:46:45 ERROR i.a.s.e.UncaughtExceptionHandler(handle):31 - Uncaught exception
airbyte-server                    | java.lang.IllegalArgumentException: Unexpected value 'archived'
airbyte-server                    |     at io.airbyte.api.model.generated.SupportLevel.fromValue(SupportLevel.java:54) ~[io.airbyte-airbyte-api-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.converters.ApiPojoConverters.toApiSupportLevel(ApiPojoConverters.java:253) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.buildSourceDefinitionRead(SourceDefinitionsHandler.java:110) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.lambda$toSourceDefinitionReadList$1(SourceDefinitionsHandler.java:147) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
airbyte-server                    |     at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
airbyte-server                    |     at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.toSourceDefinitionReadList(SourceDefinitionsHandler.java:148) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.listLatestSourceDefinitions(SourceDefinitionsHandler.java:169) ~[io.airbyte-airbyte-commons-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.java:28) ~[io.airbyte-airbyte-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.server.apis.SourceDefinitionApiController.listLatestSourceDefinitions(SourceDefinitionApiController.java:119) ~[io.airbyte-airbyte-server-0.50.54.jar:?]
airbyte-server                    |     at io.airbyte.server.apis.$SourceDefinitionApiController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-server-0.50.54.jar:?]
airbyte-server                    |     at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:371) ~[micronaut-inject-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:594) ~[micronaut-inject-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:246) ~[micronaut-router-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111) ~[micronaut-router-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:103) ~[micronaut-http-3.10.1.jar:3.10.1]
airbyte-server                    |     at io.micronaut.http.server.RouteExecutor.lambda$executeRoute$14(RouteExecutor.java:659) ~[micronaut-http-server-3.10.1.jar:3.10.1]
airbyte-server                    |     at reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:49) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$init$0(ReactorInstrumentation.java:62) ~[micronaut-runtime-3.10.1.jar:3.10.1]
airbyte-server                    |     at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.5.5.jar:3.5.5]
airbyte-server                    |     at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53) ~[micronaut-context-3.10.1.jar:3.10.1]
airbyte-server                    |     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
airbyte-server                    |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
airbyte-server                    |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
airbyte-server                    |     at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]```
Can anyone help me understand how to fix this?

<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/p1709621585604779) if you want
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
['illegal-argument-exception', 'archived', 'source-definitions', 'api-error']
</sub>