Sebastian Kazenbroot-Guppy
09/08/2020, 10:25 PM<https://api.sebastiankazenbrootguppy.com/topics|https://api.sebastiankazenbrootguppy.com/topics>
. This endpoint returns application/json. When visiting this endpoint in Chrome, I see HTTP ERROR 406
(you likely do too). However, when I CURL the endpoint, or use the API Gateway test UI, it returns an array of five JSON entities like it's supposed to. Has anyone else encountered HTTP 406 issues with a Ktor Kotless app?dector
09/10/2020, 9:43 AMAccept: */*
. However, browsers use more complex headers (e.g. my Firefox sends text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
which includes */*
but in complex expression).
My guess is that Kotless don't know to process complex Accept
header yet. But if you will use Accept: application/json
in your client - it'll work well.<https://hoppscotch.io/?method=GET&url=https://api.sebastiankazenbrootguppy.com&path=/topics&headers=[{>"key":"Accept","value":"application/json"}]
(with the latest you will need browser extension to overcome CORS issue - https://github.com/hoppscotch/hoppscotch-extension)TanVD
09/10/2020, 1:23 PMSebastian Kazenbroot-Guppy
09/15/2020, 8:37 PM