Summary
The user is trying to retrieve source configurations using Airbyte API endpoints but encountering an internal server error with a NullPointerException. The user is using curl commands to list all sources and then retrieve each configuration individually.
Question
Hello <#C021JANJ6TY|>,
I’m trying to get a list of all sources configurations, since this is not available I’m using:
curl --request POST --url '<http://localhost:8001/api/v1/source_definitions/list_latest>' --header 'accept: application/json'
to get all sources
and then wanted to use:
-H 'Content-Type: application/json' \
-d '{
"sourceDefinitionId": "<id>"
}'```
to get each configuration, but when I run the above I get:
```curl -X POST <http://localhost:8001/api/v1/source_definition_specifications/get> \
-H 'Content-Type: application/json' \
-d '{
"sourceDefinitionId": "9da77001-af33-4bcd-be46-6252bf9342b9"
}'
{"message":"Internal Server Error: null","exceptionClassName":"java.lang.NullPointerException","exceptionStack":["java.lang.NullPointerException","\tat java.base/java.util.Objects.requireNonNull(Objects.java:233)","\tat java.base/java.util.ImmutableCollections$List12.<init>(ImmutableCollections.java:563)","\tat java.base/java.util.List.of(List.java:937)","\tat io.airbyte.data.services.impls.jooq.WorkspaceServiceJooqImpl.getStandardWorkspaceNoSecrets(WorkspaceServiceJooqImpl.java:108)","\tat io.airbyte.config.persistence.version_overrides.ConfigurationDefinitionVersionOverrideProvider.getOrganizationId(ConfigurationDefinitionVersionOverrideProvider.java:48)","\tat io.airbyte.config.persistence.version_overrides.ConfigurationDefinitionVersionOverrideProvider.getScopedConfig(ConfigurationDefinitionVersionOverrideProvider.java:56)","\tat io.airbyte.config.persistence.version_overrides.ConfigurationDefinitionVersionOverrideProvider.getOverride(ConfigurationDefinitionVersionOverrideProvider.java:82)","\tat io.airbyte.config.persistence.ActorDefinitionVersionHelper.getSourceVersionWithOverrideStatus(ActorDefinitionVersionHelper.java:97)","\tat io.airbyte.config.persistence.ActorDefinitionVersionHelper.getSourceVersion(ActorDefinitionVersionHelper.java:119)","\tat io.airbyte.config.persistence.ActorDefinitionVersionHelper.getSourceVersion(ActorDefinitionVersionHelper.java:131)","\tat io.airbyte.commons.server.handlers.ConnectorDefinitionSpecificationHandler.getSourceDefinitionSpecification(ConnectorDefinitionSpecificationHandler.java:88)","\tat io.airbyte.server.apis.SourceDefinitionSpecificationApiController.lambda$getSourceDefinitionSpecification$0(SourceDefinitionSpecificationApiController.java:38)","\tat io.airbyte.server.apis.ApiHelper.execute(ApiHelper.java:28)","\tat io.airbyte.server.apis.SourceDefinitionSpecificationApiController.getSourceDefinitionSpecification(SourceDefinitionSpecificationApiController.java:38)","\tat io.airbyte.server.apis.$SourceDefinitionSpecificationApiController$Definition$Exec.dispatch(Unknown Source)","\tat io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)","\tat io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4325)","\tat io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:271)","\tat io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:39)","\tat io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:490)","\tat io.micronaut.http.server.RouteExecutor.lambda$callRoute$6(RouteExecutor.java:467)","\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)"],"rootCauseExceptionStack":[]}%```
any idea?
<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/p1725911347103019) if you want
to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["source-configurations", "api-endpoints", "internal-server-error", "nullpointerexception", "curl-commands"]
</sub>