Troubleshooting 500 error when using API endpoint initiateOAuth with Slack

Summary

The user is encountering a 500 error when trying to implement the API endpoint initiateOAuth with Slack. The provided CURL command includes the necessary parameters for initiating OAuth with Slack.


Question

I am trying to implement API endpoint initiateOAuth but I get 500 error from my API Server. I am testing it with Slack for now:

     --url <http://airbyte:passowd@10.0.50.100:8006/v1/sources/initiateOAuth> \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "oAuthInputConfiguration": {
    "client_id": "New Value",
    "client_secret": "dd"
  },
  "sourceType": "slack",
  "redirectUrl": "<https://www.com/redir>",
   "workspaceId": "92fff95a-xxxx-4000-854b-xxxxx"
}
'```

<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/p1707170385556589) if you want to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["api", "initiateoauth", "slack", "500-error", "oauth", "curl"]
</sub>

Exception:

airbyte-api-server  | java.lang.AbstractMethodError: Receiver class io.micronaut.jaxrs.runtime.core.JaxRsResponseBuilder does not define or inherit an implementation of the resolved method 'abstract javax.ws.rs.core.Response$ResponseBuilder status(int, java.lang.String)' of abstract class javax.ws.rs.core.Response$ResponseBuilder.
airbyte-api-server  | 	at javax.ws.rs.core.Response$ResponseBuilder.status(Response.java:897) ~[javax.ws.rs-api-2.1.1.jar:2.1.1]
airbyte-api-server  | 	at javax.ws.rs.core.Response.status(Response.java:568) ~[javax.ws.rs-api-2.1.1.jar:2.1.1]
airbyte-api-server  | 	at javax.ws.rs.core.Response.status(Response.java:579) ~[javax.ws.rs-api-2.1.1.jar:2.1.1]
airbyte-api-server  | 	at io.airbyte.api.server.services.SourceServiceImpl.controllerInitiateOAuth(SourceService.kt:323) ~[io.airbyte-airbyte-api-server-0.50.46.jar:?]
airbyte-api-server  | 	at io.airbyte.api.server.controllers.SourcesController.initiateOAuth(SourcesController.kt:164) ~[io.airbyte-airbyte-api-server-0.50.46.jar:?]
airbyte-api-server  | 	at io.airbyte.api.server.controllers.$SourcesController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-api-server-0.50.46.jar:?]
airbyte-api-server  | 	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:371) ~[micronaut-inject-3.10.1.jar:3.10.1]
airbyte-api-server  | 	at io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:594) ~[micronaut-inject-3.10.1.jar:3.10.1]
airbyte-api-server  | 	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:303) ~[micronaut-router-3.10.1.jar:3.10.1]
airbyte-api-server  | 	at io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111) ~[micronaut-router-3.10.1.jar:3.10.1]```