Hey friends! I'm trying to get streams schema for ...
# ask-community-for-troubleshooting
m
Hey friends! I'm trying to get streams schema for my connector via API:
Copy code
import requests
<http://requests.post|requests.post>('<http://localhost:8000/api/v1/scheduler/sources/discover_schema>', json={
    "workspaceId": '75bd5142-ed9f-45ad-bf05-8d663a74dc21',
    "sourceDefinitionId": '6e1eba1c-7849-4818-ab74-6d990329fedc',
    "connectionConfiguration": {
    'app_id': 'taxi.android.client',
    'languages': {'type': 'all'},
    'start_date': '2022-09-01',
    'timeout_milliseconds': 1000,
    'max_reviews_per_request': 100}
}).json()
and get response:
Copy code
{'message': 'Internal Server Error: Cannot invoke "java.util.UUID.toString()" because the return value of "io.airbyte.config.SourceConnection.getSourceId()" is null',
 'exceptionClassName': 'java.lang.NullPointerException',
 'exceptionStack': ['java.lang.NullPointerException: Cannot invoke "java.util.UUID.toString()" because the return value of "io.airbyte.config.SourceConnection.getSourceId()" is null',
  '\tat io.airbyte.server.scheduler.DefaultSynchronousSchedulerClient.createDiscoverSchemaJob(DefaultSynchronousSchedulerClient.java:128)',
  '\tat io.airbyte.server.handlers.SchedulerHandler.discoverSchemaForSourceFromSourceCreate(SchedulerHandler.java:264)',
  '\tat io.airbyte.server.apis.ConfigurationApi.lambda$executeSourceDiscoverSchema$80(ConfigurationApi.java:755)',
  '\tat io.airbyte.server.apis.ConfigurationApi.execute(ConfigurationApi.java:845)',
  '\tat io.airbyte.server.apis.ConfigurationApi.executeSourceDiscoverSchema(ConfigurationApi.java:755)',
  '\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)',
  '\tat java.base/java.lang.reflect.Method.invoke(Method.java:578)',
  '\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)',
  '\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)',
  '\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)',
  '\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:219)',
  '\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)',
  '\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469)',
  '\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391)',
  '\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80)',
  '\tat org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253)',
  '\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)',
  '\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)',
  '\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)',
  '\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)',
  '\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)',
  '\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)',
  '\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232)',
  '\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)',
  '\tat org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394)',
  '\tat org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)',
  '\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:366)',
  '\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:319)',
  '\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)',
  '\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)',
  '\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:569)',
  '\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)',
  '\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1377)',
  '\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)',
  '\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:507)',
  '\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)',
  '\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1292)',
  '\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)',
  '\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)',
  '\tat org.eclipse.jetty.server.Server.handle(Server.java:501)',
  '\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)',
  '\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)',
  '\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)',
  '\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)',
  '\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)',
  '\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)',
  '\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)',
  '\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)',
  '\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)',
  '\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)',
  '\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)',
  '\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)',
  '\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)',
  '\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)',
  '\tat java.base/java.lang.Thread.run(Thread.java:1589)']}
It looks like API is broken for this link Airbyte version is 40.0.17
API for searching destinations also doesn't work
n
Hi, @Mikhail Masyagin! It looks like the source is not included in the list of sources. Is this a custom connector?
m
Hi, @Nataly Merezhuk (Airbyte) Yes, it is custom
u
Here are the docs on using custom connectors: https://docs.airbyte.com/operator-guides/using-custom-connectors/ This may be the issue, make sure the custom connector is pushed to your custom Docker registry: https://docs.airbyte.com/operator-guides/using-custom-connectors/#3-push-your-connector-image-to-your-private-docker-registry
m
@Nataly Merezhuk (Airbyte), but what about problem with destinations search on 40.0.17?
n
Hi Mikhail! Thanks for your patience - our small team is still catching up after Hacktoberfest! I haven't seen this issue with destination search replicated for
0.40.17
, regardless - could you try updating to the latest version and see if it gets resolved?