Giter Club home page Giter Club logo

Comments (15)

descampsk avatar descampsk commented on August 24, 2024 4

Still in v0.63.2

from airbyte.

JonsSpaghetti avatar JonsSpaghetti commented on August 24, 2024 2

Can the folks on this thread try updating their URL from localhost:8006 -> localhost:8001/api/public and let us know if that resolves the issue? We just tested on 63.2 and were able to confirm that the issue doesn't happen when making a call to the new URL but does happen with the old URL.

This means your URL will go from looking something like this: localhost:8006/v1/connections -> localhost:8001/api/public/v1/connections.

Here's a page detailing what's going on, but the summary is that we have two versions of the Airbyte API right now and are planning to deprecate the one that you're referencing here. It seems as though some fixes that have gone into the new version have not made it into the old version that's being deprecated.

from airbyte.

descampsk avatar descampsk commented on August 24, 2024 1

Still in v0.63.1

from airbyte.

descampsk avatar descampsk commented on August 24, 2024

This error is reproductible with the launcher script :

# clone Airbyte from GitHub
git clone --depth=1 https://github.com/airbytehq/airbyte.git

# switch into Airbyte directory
cd airbyte

# start Airbyte
./run-ab-platform.sh

# GET jobs
curl http://airbyte:password@localhost:8006/v1/jobs?workspaceIds=688993b4-a749-4360-b372-1289600851e9&status=running

{"type":"about:blank","status":500}

from airbyte.

aliellis avatar aliellis commented on August 24, 2024

Just updated to v0.63.1 and hitting the same issue

from the logs:

2024-06-20 16:07:11 ERROR i.m.h.s.RouteExecutor(logException):282 - Unexpected error occurred: No enum constant io.airbyte.api.client.model.generated.JobStatus.incomplete
java.lang.IllegalArgumentException: No enum constant io.airbyte.api.client.model.generated.JobStatus.incomplete
	at java.base/java.lang.Enum.valueOf(Enum.java:293) ~[?:?]
	at io.airbyte.api.client.model.generated.JobStatus.valueOf(JobStatus.kt) ~[io.airbyte-airbyte-api-0.63.1.jar:?]
	at io.airbyte.api.server.filters.JobsFilter.getConfigApiStatus(JobsFilter.kt:43) ~[io.airbyte-airbyte-api-server-0.63.1.jar:?]
	at io.airbyte.api.server.services.JobServiceImpl.getJobList(JobService.kt:211) ~[io.airbyte-airbyte-api-server-0.63.1.jar:?]
	at io.airbyte.api.server.controllers.JobsController.listJobs$lambda$5(JobsController.kt:232) ~[io.airbyte-airbyte-api-server-0.63.1.jar:?]
	at io.airbyte.api.server.apiTracking.TrackingHelper.callWithTracker(TrackingHelper.kt:107) ~[io.airbyte-airbyte-api-server-0.63.1.jar:?]
	at io.airbyte.api.server.controllers.JobsController.listJobs(JobsController.kt:230) ~[io.airbyte-airbyte-api-server-0.63.1.jar:?]
	at io.airbyte.api.server.controllers.$JobsController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-api-server-0.63.1.jar:?]
	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461) ~[micronaut-inject-4.4.10.jar:4.4.10]
	at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4232) ~[micronaut-inject-4.4.10.jar:4.4.10]
	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:271) ~[micronaut-router-4.4.10.jar:4.4.10]
	at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488) ~[micronaut-http-server-4.4.10.jar:4.4.10]
	at io.micronaut.http.server.RouteExecutor.lambda$callRoute$6(RouteExecutor.java:465) ~[micronaut-http-server-4.4.10.jar:4.4.10]
	at io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87) ~[micronaut-core-4.4.10.jar:4.4.10]
	at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211) ~[micronaut-core-4.4.10.jar:4.4.10]
	at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211) ~[micronaut-core-4.4.10.jar:4.4.10]
	at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:314) ~[?:?]
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:309) ~[?:?]

This happens for all statuses, not just incomplete

from airbyte.

benbauer-draeger avatar benbauer-draeger commented on August 24, 2024

any change someone could investigate the issue?

from airbyte.

descampsk avatar descampsk commented on August 24, 2024

I tried to investigate but without success to find the root cause :(

from airbyte.

marcosmarxm avatar marcosmarxm commented on August 24, 2024

@descampsk @benbauer-draeger the team is working on a fix and will release it soon. Sorry for the lack of updates about the problem.

from airbyte.

tryangul avatar tryangul commented on August 24, 2024

I am able to reproduce an error (400 with a similar stack trace) in the 63.1 release using the curl @descampsk provided, but unable to do so with 63.2. Can anyone provide a fresh stack trace from >= 63.2?

There was an enum serialization fix that went out with 63.2, so I'm wondering if there's another issue / complication going here.

Steps I took:

  • Download the release here
  • cd in and run via ./run-ab-platform.sh
  • attempt repro via curl -i http://airbyte:password@localhost:8006/v1/jobs?connectionId=e3c6eec3-7240-490a-95be-eb58ea635fb1&status=running

from airbyte.

daniel-ro avatar daniel-ro commented on August 24, 2024

@tryangul
this happens on 0.63.4, not sure if related but I get the same 500 errors

2024-07-09 08:42:00 ERROR i.m.h.s.RouteExecutor(logException):282 - Unexpected error occurred: No enum constant io.airbyte.api.client.model.generated.Geography.auto
java.lang.IllegalArgumentException: No enum constant io.airbyte.api.client.model.generated.Geography.auto
	at java.base/java.lang.Enum.valueOf(Enum.java:293) ~[?:?]
	at io.airbyte.api.client.model.generated.Geography.valueOf(Geography.kt) ~[io.airbyte-airbyte-api-0.63.4.jar:?]
	at io.airbyte.api.server.mappers.ConnectionUpdateMapper.from(ConnectionUpdateMapper.kt:54) ~[io.airbyte-airbyte-api-server-0.63.4.jar:?]
	at io.airbyte.api.server.services.ConnectionServiceImpl.updateConnection(ConnectionService.kt:202) ~[io.airbyte-airbyte-api-server-0.63.4.jar:?]
	at io.airbyte.api.server.controllers.ConnectionsController.patchConnection$lambda$19(ConnectionsController.kt:386) ~[io.airbyte-airbyte-api-server-0.63.4.jar:?]
	at io.airbyte.api.server.apiTracking.TrackingHelper.callWithTracker(TrackingHelper.kt:107) ~[io.airbyte-airbyte-api-server-0.63.4.jar:?]
	at io.airbyte.api.server.controllers.ConnectionsController.patchConnection(ConnectionsController.kt:384) ~[io.airbyte-airbyte-api-server-0.63.4.jar:?]
	at io.airbyte.api.server.controllers.$ConnectionsController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-api-server-0.63.4.jar:?]
	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461) ~[micronaut-inject-4.5.3.jar:4.5.3]
	at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4325) ~[micronaut-inject-4.5.3.jar:4.5.3]
	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:271) ~[micronaut-router-4.5.3.jar:4.5.3]
	at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:39) ~[micronaut-router-4.5.3.jar:4.5.3]
	at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:490) ~[micronaut-http-server-4.5.3.jar:4.5.3]
	at io.micronaut.http.server.RouteExecutor.lambda$callRoute$6(RouteExecutor.java:467) ~[micronaut-http-server-4.5.3.jar:4.5.3]
	at io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87) ~[micronaut-core-4.5.3.jar:4.5.3]
	at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211) ~[micronaut-core-4.5.3.jar:4.5.3]
	at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211) ~[micronaut-core-4.5.3.jar:4.5.3]
	at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:314) ~[?:?]
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:309) ~[?:?]

from airbyte.

daniel-ro avatar daniel-ro commented on August 24, 2024

@JonsSpaghetti changing the url for accessing the server instead of the deprecated api-server solves the issue for me, thanks!

from airbyte.

benbauer-draeger avatar benbauer-draeger commented on August 24, 2024

@JonsSpaghetti thanks for your solution. I could validate that it works for 63.5 as well.
Does anybody know whether this will be reflected in the Airflow provider package as the url now has the api/public part in it?

from airbyte.

descampsk avatar descampsk commented on August 24, 2024

Will test that tomorow thanks for the tip

from airbyte.

JonsSpaghetti avatar JonsSpaghetti commented on August 24, 2024

@benbauer-draeger I believe the Airflow operator uses the API that lives at /api, not the public API that lives at /api/public so for now that should not be affected as far as I'm aware.

from airbyte.

benbauer-draeger avatar benbauer-draeger commented on August 24, 2024

Yes, that's correct and with the change it's working. I just wanted to point out, that the default should probably be updated with one of the next updates :)

from airbyte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.