hey is something wrong with the airbyte api right ...
# airbyte-api
b
hey is something wrong with the airbyte api right now? im making calls to get the oauth2 consent url... getting a response body of
{"type":"about:blank","status":500}
on the SaaS product and the open source installation product
here is what im seeing in logs locally when running the docker container:
here is a curl request that generates the error:
Copy code
$ curl -H "Authorization: Basic YWlyYnl0ZTpwYXNzd29yZA==" -X POST --json '{"name": "notion", "workspaceId": "92f6bcd4-d292-4635-9ce4-d8faf83f894a", "redirectUrl": "<http://localhost:3000/foo>"}' <http://localhost:8006/v1/sources/initiateOAuth>
response from curl is this:
Copy code
{
  "type": "about:blank",
  "status": 500
}
verbose curl:
Copy code
$ curl -H "Authorization: Basic YWlyYnl0ZTpwYXNzd29yZA==" -X POST --json '{"name": "notion", "workspaceId": "92f6bcd4-d292-4635-9ce4-d8faf83f894a", "redirectUrl": "<http://localhost:3000/foo>"}' <http://localhost:8006/v1/sources/initiateOAuth> --verbose
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 127.0.0.1:8006...
* Connected to localhost (127.0.0.1) port 8006 (#0)
> POST /v1/sources/initiateOAuth HTTP/1.1
> Host: localhost:8006
> User-Agent: curl/8.1.2
> Authorization: Basic YWlyYnl0ZTpwYXNzd29yZA==
> Content-Type: application/json
> Accept: application/json
> Content-Length: 117
>
< HTTP/1.1 500 Internal Server Error
< Server: nginx/1.25.2
< Date: Sun, 15 Oct 2023 05:58:43 GMT
< Content-Type: application/problem+json
< Content-Length: 35
< Connection: keep-alive
<
* Connection #0 to host localhost left intact
{"type":"about:blank","status":500}%
im seeing the same thing with SaaS and this was working for me at some point. i dont think i made any changes on our end but i cant rule that out completely.
healthcheck api call
Copy code
$ curl -H "Authorization: Basic YWlyYnl0ZTpwYXNzd29yZA==" -X GET  <http://localhost:8006/health> --verbose
Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying 127.0.0.1:8006...
* Connected to localhost (127.0.0.1) port 8006 (#0)
> GET /health HTTP/1.1
> Host: localhost:8006
> User-Agent: curl/8.1.2
> Accept: */*
> Authorization: Basic YWlyYnl0ZTpwYXNzd29yZA==
>
< HTTP/1.1 200 OK
< Server: nginx/1.25.2
< Date: Sun, 15 Oct 2023 06:07:34 GMT
< Content-Type: application/json
< Content-Length: 20
< Connection: keep-alive
<
* Connection #0 to host localhost left intact
Successful operation%
j
Possibly, an error in OSS is expected as the OAuth endpoints aren’t implemented there, but for cloud we should not be seeing a 500 and I just confirmed that I see it myself. We’ll look into it to see what’s going on, thanks for letting us know.
Nevermind, my API call was missing a value for the
workspaceId
. If I put that in correctly, I do get a response returned as expected. If you have a workspace ID that you've been seeing errors for you can send it to me and I can let you know what specifically went wrong.