API 500 Error with NullPointerException in Airbyte Container

Summary

The user is facing a 500 error when trying to access the Airbyte API in a Kubernetes environment. The error is caused by a NullPointerException in the Airbyte container.


Question

Hi,

I have installed oss version in kubernetes but suddenly api is not working.
details:
platform : EKS aws
storage: minio pod
db: aws rds postgres 12.14

even with new installation in a seperate namespace giving the same error for every api calls
I am trying to access api but always getting 500 error along with below logs in api container

2024-02-29 14:57:30 ERROR i.m.h.s.RouteExecutor(logException):444 - Unexpected error occurred: null
java.lang.NullPointerException: null
	at io.airbyte.api.server.services.SourceServiceImpl.listSourcesForWorkspaces(SourceService.kt:296) ~[io.airbyte-airbyte-api-server-0.50.56.jar:?]
	at io.airbyte.api.server.controllers.SourcesController.listSources$lambda$4(SourcesController.kt:180) ~[io.airbyte-airbyte-api-server-0.50.56.jar:?]
	at io.airbyte.api.server.apiTracking.TrackingHelper.callWithTracker(TrackingHelper.kt:107) ~[io.airbyte-airbyte-api-server-0.50.56.jar:?]
	at io.airbyte.api.server.controllers.SourcesController.listSources(SourcesController.kt:179) ~[io.airbyte-airbyte-api-server-0.50.56.jar:?]
	at io.airbyte.api.server.controllers.$SourcesController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-api-server-0.50.56.jar:?]
	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:371) ~[micronaut-inject-3.10.1.jar:3.10.1]
	at io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:594) ~[micronaut-inject-3.10.1.jar:3.10.1]
	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:303) ~[micronaut-router-3.10.1.jar:3.10.1]
	at io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111) ~[micronaut-router-3.10.1.jar:3.10.1]
	at io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:103) ~[micronaut-http-3.10.1.jar:3.10.1]
	at io.micronaut.http.server.RouteExecutor.lambda$executeRoute$14(RouteExecutor.java:659) ~[micronaut-http-server-3.10.1.jar:3.10.1]
	at reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:49) ~[reactor-core-3.5.5.jar:3.5.5]
	at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62) ~[reactor-core-3.5.5.jar:3.5.5]
	at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.5.5.jar:3.5.5]
	at io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$init$0(ReactorInstrumentation.java:62) ~[micronaut-runtime-3.10.1.jar:3.10.1]
	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.5.5.jar:3.5.5]
	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.5.5.jar:3.5.5]
	at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53) ~[micronaut-context-3.10.1.jar:3.10.1]```

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

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

<sub>
["api", "500-error", "nullpointerexception", "kubernetes", "eks-aws", "minio-pod", "aws-rds-postgres"]
</sub>

Hi,
I am facing similar issue with all the api endpoints:
I saw discussion : https://github.com/airbytehq/airbyte/discussions/35116#discussioncomment-8569228

<@U06AQE1UMMH> do you have any idea how i can fix this or why this is happening

is it when you try to access from UI?