https://linen.dev logo
d

Davin Chia (Airbyte)

03/04/2021, 1:09 PM
I’m getting an internal server error when querying
localhost:8001/api/v1/logs/get
. Anyone else seeing this?
False alarm. Nothing to see here!
u

user

03/04/2021, 1:10 PM
Copy code
➜  .dockerversions git:(better-api-docs) ✗ curl localhost:8001/api/v1/logs/get
{"message":"internal server error"}%
this works fine for you? edit: this commend isn’t a POST
u

user

03/04/2021, 1:13 PM
ah you’re right i get an exception
u

user

03/04/2021, 1:14 PM
good to know I’m not going crazy. I will create an issue and take a look some other time
u

user

03/04/2021, 1:18 PM
curl -X POST "http://localhost:8001/api/v1/logs/get" -H "accept: text/plain" -H "Content-Type: application/json" -d "{\"logType\":\"server\"}"
u

user

03/04/2021, 1:18 PM
Ah I see my mistake now
u

user

03/04/2021, 1:18 PM
@Davin Chia (Airbyte) when I ran this got a return
u

user

03/04/2021, 1:19 PM
In the terminal is OK but in the swagger UI blows up :~
u

user

03/04/2021, 1:21 PM
you mean the airbyte ui?
u

user

03/04/2021, 1:23 PM
got cha. strange, Swagger UI is working for me
u

user

03/04/2021, 1:23 PM
did you try the endpoint in the Swagger?
u

user

03/04/2021, 1:24 PM
yes
u

user

03/04/2021, 1:25 PM
wait a sec, you are right. I was looking at the wrong response (I really dislike Swagger UI)
u

user

03/04/2021, 1:31 PM
okay. turns out my initial curl command wasn’t right. however swagger UI is erroring out. will amend the issue. thanks guys!
u

user

03/04/2021, 1:36 PM
actually @[DEPRECATED] Marcos Marx can you give swagger ui another shot? restarted my server and it seems to be fine now
u

user

03/04/2021, 1:39 PM
@Davin Chia (Airbyte) maybe now works because the log is small? Later I'm gonna try again
2 Views