<@U04S8PLJWMT>, i'm getting this error when trying...
# ask-ai
y
@kapa.ai, i'm getting this error when trying to create new source. { "url": "https://airbyte.pulse-security.io/workspaces/87c2c892-7da7-4c50-9fc9-d503d0ea7db1/source/new-source", "airbyteVersion": "1.3.1", "errorType": "HttpError", "errorConstructor": "Xu", "error": { "i18nKey": "errors.http.internalServerError", "i18nParams": { "status": 500 }, "name": "HttpError", "requestId": "eqVXKCw9pmRkUEmU3GBoiH", "request": { "url": "/api/v1/source_definitions/list_enterprise_source_stubs", "method": "post" }, "status": 500, "response": { "message": "Internal Server Error: java.io.IOException: HTTP error fetching enterprise sources", "exceptionClassName": "java.lang.RuntimeException", "exceptionStack": [], "rootCauseExceptionStack": [] } }, "stacktrace": "HttpError: errors.http.internalServerError\n at jve (https://airbyte.pulse-security.io/assets/core-fpdmzxaudr.js:120:11251)\n at async Gt.suspense [as queryFn] (https://airbyte.pulse-security.io/assets/core-fpdmzxaudr.js:384:95059)", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36", "featureFlags": {} } Airbyte-server stack trace: ERROR i.a.c.s.h.EnterpriseSourceStubsHandler(listEnterpriseSourceStubs):53 - Encountered an HTTP error fetching enterprise connectors. Message: Unrecognized field "codename" (class io.airbyte.api.model.generated.EnterpriseSourceStub), not marked as ignorable (6 known properties: "label", "icon", "type", "id", "url", "name"]) at [Source: REDACTED (
StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
disabled); line: 9, column: 18] (through reference chain: java.util.ArrayList[0]->io.airbyte.api.model.generated.EnterpriseSourceStub["codename"]) 2025-02-10 112235,926 [io-executor-thread-6] ERROR i.a.c.s.e.h.UncaughtExceptionHandler(handle):33 - Uncaught exception java.lang.RuntimeException: java.io.IOException: HTTP error fetching enterprise sources at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:43) at io.airbyte.server.apis.SourceDefinitionApiController.listEnterpriseSourceStubs(SourceDefinitionApiController.java:125) at io.airbyte.server.apis.$SourceDefinitionApiController$Definition$Exec.dispatch(Unknown Source) at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461) at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4354) at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:231) at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:38) at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488) at io.micronaut.http.server.RouteExecutor.lambda$callRoute$5(RouteExecutor.java:465) at io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87) at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.io.IOException: HTTP error fetching enterprise sources at io.airbyte.commons.server.handlers.EnterpriseSourceStubsHandler.listEnterpriseSourceStubs(EnterpriseSourceStubsHandler.kt:57) at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:31) ... 13 common frames omitted Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "codename" (class io.airbyte.api.model.generated.EnterpriseSourceStub), not marked as ignorable (6 known properties: "label", "icon", "type", "id", "url", "name"]) at [Source: REDACTED (
StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
disabled); line: 9, column: 18] (through reference chain: java.util.ArrayList[0]->io.airbyte.api.model.generated.EnterpriseSourceStub["codename"]) at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1153) at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:2241) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1821) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1799) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:316) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:361) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:246) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:30) at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4917) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3860) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3843) at io.airbyte.commons.server.handlers.EnterpriseSourceStubsHandler.listEnterpriseSourceStubs(EnterpriseSourceStubsHandler.kt:46) ... 14 common frames omitted
k
Based on the error message and stack trace you provided, it appears you're encountering an issue when trying to create a new source in Airbyte version 1.3.1. The error is related to fetching enterprise source stubs. Here's an analysis of the problem: 1. The main error is: "Internal Server Error: java.io.IOException: HTTP error fetching enterprise sources" 2. The root cause seems to be:
Copy code
Unrecognized field "codename" (class io.airbyte.api.model.generated.EnterpriseSourceStub), not marked as ignorable (6 known properties: "label", "icon", "type", "id", "url", "name"])
This error suggests that there's a mismatch between the expected and actual data structure when fetching enterprise source stubs. The API is receiving a field named "codename" which it doesn't recognize. This issue is similar to one reported in the Airbyte GitHub repository: [list_enterprise_source_stubs error keeps happening](https://github.com/airbytehq/airbyte/issues/51511). Possible solutions or workarounds: 1. As suggested in the GitHub issue, you could try setting the
ENTERPRISE_SOURCE_STUBS_URL
environment variable to an empty string:
Copy code
ENTERPRISE_SOURCE_STUBS_URL: ""
However, note that this didn't resolve the issue for everyone. 2. Another user in the same GitHub issue reported that deleting and restarting the airbyte-server pod resolved the problem temporarily:
Copy code
kubectl delete pod airbyte-server-[pod-name] -n [your-namespace]
Replace [pod-name] and [your-namespace] with your actual pod name and namespace. 3. If you're using a custom connector registry, ensure that the data structure matches what Airbyte expects. The error suggests that "codename" is not a recognized field for EnterpriseSourceStub. 4. Consider upgrading or downgrading your Airbyte version. Some users reported that the issue didn't exist in earlier versions. If these solutions don't work, you may need to reach out to Airbyte support or file a new issue on their GitHub repository with your specific configuration details.