Adwait Chavan
10/23/2022, 5:07 PM{
"message": "The provided configuration does not fulfill the specification. Errors: json schema validation failed when comparing the data to the json schema. \nErrors: $.webhookConfigs[0].authToken: object found, string expected \nSchema: \n{\n \"$schema\" : \"<http://json-schema.org/draft-07/schema#>\",\n \"$id\" : \"<https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/WebhookOperationConfigs.yaml>\",\n \"title\" : \"WebhookOperationConfigs\",\n \"description\" : \"List of configurations for webhook operations\",\n \"additionalProperties\" : false,\n \"type\" : \"object\",\n \"properties\" : {\n \"webhookConfigs\" : {\n \"type\" : \"array\",\n \"items\" : {\n \"type\" : \"object\",\n \"required\" : [ \"id\", \"name\" ],\n \"properties\" : {\n \"id\" : {\n \"type\" : \"string\",\n \"format\" : \"uuid\"\n },\n \"name\" : {\n \"type\" : \"string\",\n \"description\" : \"human readable name for this webhook e.g., for UI display\"\n },\n \"authToken\" : {\n \"type\" : \"string\",\n \"airbyte_secret\" : true,\n \"description\" : \"An auth token, to be passed as the value for an HTTP Authorization header. Note - must include prefix such as \\\"Bearer <credential>\\\".\"\n }\n }\n }\n }\n }\n}",
"exceptionClassName": "io.airbyte.server.errors.BadObjectSchemaKnownException",
"exceptionStack": [
"io.airbyte.server.errors.BadObjectSchemaKnownException: The provided configuration does not fulfill the specification. Errors: json schema validation failed when comparing the data to the json schema. ",
"Errors: $.webhookConfigs[0].authToken: object found, string expected ",
"Schema: ",
"{",
" \"$schema\" : \"<http://json-schema.org/draft-07/schema#>\",",
" \"$id\" : \"<https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/WebhookOperationConfigs.yaml>\",",
" \"title\" : \"WebhookOperationConfigs\",",
" \"description\" : \"List of configurations for webhook operations\",",
" \"additionalProperties\" : false,",
" \"type\" : \"object\",",
" \"properties\" : {",
" \"webhookConfigs\" : {",
" \"type\" : \"array\",",
" \"items\" : {",
" \"type\" : \"object\",",
" \"required\" : [ \"id\", \"name\" ],",
" \"properties\" : {",
" \"id\" : {",
" \"type\" : \"string\",",
" \"format\" : \"uuid\"",
" },",
" \"name\" : {",
" \"type\" : \"string\",",
" \"description\" : \"human readable name for this webhook e.g., for UI display\"",
" },",
" \"authToken\" : {",
" \"type\" : \"string\",",
" \"airbyte_secret\" : true,",
" \"description\" : \"An auth token, to be passed as the value for an HTTP Authorization header. Note - must include prefix such as \\\"Bearer <credential>\\\".\"",
" }",
" }",
" }",
" }",
" }",
"}",
"\tat io.airbyte.server.apis.ConfigurationApi.execute(ConfigurationApi.java:851)",
"\tat io.airbyte.server.apis.ConfigurationApi.deleteWorkspace(ConfigurationApi.java:269)",
"\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$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:159)",
"\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)",
"Caused by: io.airbyte.validation.json.JsonValidationException: json schema validation failed when comparing the data to the json schema. ",
"Errors: $.webhookConfigs[0].authToken: object found, string expected ",
"Schema: ",
"{",
" \"$schema\" : \"<http://json-schema.org/draft-07/schema#>\",",
" \"$id\" : \"<https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/WebhookOperationConfigs.yaml>\",",
" \"title\" : \"WebhookOperationConfigs\",",
" \"description\" : \"List of configurations for webhook operations\",",
" \"additionalProperties\" : false,",
" \"type\" : \"object\",",
" \"properties\" : {",
" \"webhookConfigs\" : {",
" \"type\" : \"array\",",
" \"items\" : {",
" \"type\" : \"object\",",
" \"required\" : [ \"id\", \"name\" ],",
" \"properties\" : {",
" \"id\" : {",
" \"type\" : \"string\",",
" \"format\" : \"uuid\"",
" },",
" \"name\" : {",
" \"type\" : \"string\",",
" \"description\" : \"human readable name for this webhook e.g., for UI display\"",
" },",
" \"authToken\" : {",
" \"type\" : \"string\",",
" \"airbyte_secret\" : true,",
" \"description\" : \"An auth token, to be passed as the value for an HTTP Authorization header. Note - must include prefix such as \\\"Bearer <credential>\\\".\"",
" }",
" }",
" }",
" }",
" }",
"}",
"\tat io.airbyte.validation.json.JsonSchemaValidator.ensure(JsonSchemaValidator.java:83)",
"\tat io.airbyte.config.persistence.SecretsRepositoryWriter.statefulUpdateSecrets(SecretsRepositoryWriter.java:153)",
"\tat io.airbyte.config.persistence.SecretsRepositoryWriter.writeWorkspace(SecretsRepositoryWriter.java:337)",
"\tat io.airbyte.server.handlers.WorkspacesHandler.persistStandardWorkspace(WorkspacesHandler.java:313)",
"\tat io.airbyte.server.handlers.WorkspacesHandler.deleteWorkspace(WorkspacesHandler.java:140)",
"\tat io.airbyte.server.apis.ConfigurationApi.lambda$deleteWorkspace$1(ConfigurationApi.java:270)",
"\tat io.airbyte.server.apis.ConfigurationApi.execute(ConfigurationApi.java:845)",
"\t... 51 more"
],
"rootCauseExceptionClassName": "java.lang.Class",
"rootCauseExceptionStack": [
"io.airbyte.validation.json.JsonValidationException: json schema validation failed when comparing the data to the json schema. ",
"Errors: $.webhookConfigs[0].authToken: object found, string expected ",Ignacio Reyna
10/23/2022, 5:16 PM"Errors: $.webhookConfigs[0].authToken: object found, string expected ",
Are you using a yml? Could it be that you have a new line in the authToken item and it's being parsed as an object?Adwait Chavan
10/23/2022, 6:27 PMAdwait Chavan
10/23/2022, 6:42 PMEli Sigal
10/24/2022, 6:37 AMSaj Dider (Airbyte)
10/24/2022, 4:15 PMAdwait Chavan
10/24/2022, 5:09 PMMETHOD: POST
localhost:8000/api/v1/workspaces/delete
body
{
"workspaceId": "eea356cf-8635-4jec-5716-f3623bffbn88"
}Adwait Chavan
10/26/2022, 6:55 AMcurl -X POST "<http://localhost:8000/api/v1/workspaces/delete>" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"workspaceId":"eea356cf-8635-4jec-5716-f3623bffbn88"}' \Eli Sigal
10/26/2022, 7:05 AM\"description\" : \"An auth token, to be passed as the value for an HTTP Authorization header. Note - must include prefix such as \\\"Bearer <credential>\\\".\"",
It wants you to give it a bearer token in the authorization header
Are you using postman?
since you can do it without one in postmanAdwait Chavan
10/26/2022, 8:08 AMEli Sigal
10/26/2022, 8:10 AMAdwait Chavan
10/26/2022, 8:27 AMBearer="password" in the .env file and restarted docker... and passed the bearer token as password in postman still got the same error. Note: Create/list workspace apis are still working fine even if I don't pass the bearer tokenAdwait Chavan
10/26/2022, 8:30 AMEli Sigal
10/26/2022, 8:42 AMEli Sigal
10/26/2022, 8:42 AMEli Sigal
10/26/2022, 8:45 AMcurl --location --request POST '<http://localhost:8000/api/v1/workspaces/list>' \
--header 'Authorization: Bearer afolgjnbasfkjganfgoikajsdfnbg98q35ruhg802945gub24'Adwait Chavan
10/26/2022, 9:48 AM0.40.17
I am getting the same error even after using the above commandAdwait Chavan
10/26/2022, 9:49 AMcurl -L -X POST "<http://localhost:8000/api/v1/workspaces/delete>" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer afolgjnbasfkjganfgoikajsdfnbg98q35ruhg802945gub24" -d "{"""workspaceId""":"""21bc09f3-506d-4175-9a3d-1c545a776d2c"""}"Eli Sigal
10/26/2022, 10:06 AMAdwait Chavan
10/26/2022, 10:18 AMEli Sigal
10/26/2022, 10:20 AMAdwait Chavan
10/26/2022, 10:35 AMEli Sigal
10/26/2022, 10:36 AM"Errors: $.webhookConfigs[0].authToken: object found, string expected ",
can you make sure it`s a string?Adwait Chavan
10/26/2022, 10:40 AM-H "Authorization: Bearer afolgjnbasfkjganfgoikajsdfnbg98q35ruhg802945gub24"
-H "Authorization: Bearer """afolgjnbasfkjganfgoikajsdfnbg98q35ruhg802945gub24""""
-H "Authorization: """Bearer afolgjnbasfkjganfgoikajsdfnbg98q35ruhg802945gub24"""" to make sure that it was considered as a string but every single time I got the same errorAdwait Chavan
10/26/2022, 10:55 AMEli Sigal
10/26/2022, 10:58 AMSaj Dider (Airbyte)
10/26/2022, 6:46 PMAdam Bylund
01/11/2023, 10:19 AMOctavia Squidington III
02/09/2023, 12:37 PMShubham
08/23/2023, 6:06 AM