Search issues -- Mastodon Search API endpoint missing?
There are search descrepancies between Amaroq and Pawoo on iOS. It seems all searches in Amaroq are user account-focused, but gives you clickable hashtags for the word you are searching for. Pawoo
Amaroq's search query for a user account captured with Varnish which I am using for my reverse proxy:
- Begin req 6395489 rxreq - Timestamp Start: 1509298020.479029 0.000000 0.000000 - Timestamp Req: 1509298020.479029 0.000000 0.000000 - ReqStart 47.49.35.242 65122 - ReqMethod GET - ReqURL /api/v1/accounts/search?limit=5&q=_tj%40mastodon.social - ReqProtocol HTTP/1.1 - ReqHeader Host: social.cheesebsd.com - ReqHeader Connection: keep-alive - ReqHeader Accept: */* - ReqHeader User-Agent: DireFloof/1.1.6 (iPhone; iOS 11.1; Scale/2.00) - ReqHeader Accept-Language: en-US;q=1 - ReqHeader Authorization: Bearer REDACTED - ReqHeader Accept-Encoding: br, gzip, deflate - ReqHeader X-Forwarded-For: 47.49.35.242 - VCL_call RECV - VCL_return pass - VCL_call HASH - VCL_return lookup - VCL_call PASS - VCL_return fetch - Link bereq 6395491 pass - Timestamp Fetch: 1509298020.812401 0.333371 0.333371 - RespProtocol HTTP/1.1 - RespStatus 400 - RespReason Bad Request - RespHeader server: Cowboy - RespHeader date: Sun, 29 Oct 2017 17:27:00 GMT - RespHeader content-length: 45 - RespHeader content-type: application/json; charset=utf-8 - RespHeader cache-control: max-age=0, private, must-revalidate - RespHeader x-request-id: 6ve0kos8k767dr3osfgfdpm10d3pcjds - RespHeader X-Varnish: 6395490 - RespHeader Age: 0 - RespHeader Via: 1.1 varnish (Varnish/5.2) - VCL_call DELIVER - VCL_return deliver - Timestamp Process: 1509298020.812436 0.333407 0.000036 - RespHeader Connection: keep-alive - Timestamp Resp: 1509298020.812474 0.333445 0.000038 - ReqAcct 329 0 329 332 45 377 - End
Pawoo's search for the same user:
* << Request >> 6666626 - Begin req 6666625 rxreq - Timestamp Start: 1509298675.420522 0.000000 0.000000 - Timestamp Req: 1509298675.420522 0.000000 0.000000 - ReqStart 47.49.35.242 65286 - ReqMethod GET - ReqURL /api/v1/search?q=_tj%40mastodon.social - ReqProtocol HTTP/1.1 - ReqHeader Host: social.cheesebsd.com - ReqHeader Connection: keep-alive - ReqHeader Accept: application/json - ReqHeader User-Agent: PawooiOSApp/#Unknown - ReqHeader Authorization: Bearer REDACTED - ReqHeader Accept-Language: en-us - ReqHeader Accept-Encoding: gzip, deflate - ReqHeader X-Forwarded-For: 47.49.35.242 - VCL_call RECV - VCL_return pass - VCL_call HASH - VCL_return lookup - VCL_call PASS - VCL_return fetch - Link bereq 6666627 pass - Timestamp Fetch: 1509298675.480866 0.060344 0.060344 - RespProtocol HTTP/1.1 - RespStatus 200 - RespReason OK - RespHeader server: Cowboy - RespHeader date: Sun, 29 Oct 2017 17:37:55 GMT - RespHeader content-length: 1105 - RespHeader content-type: application/json; charset=utf-8 - RespHeader cache-control: max-age=0, private, must-revalidate - RespHeader x-request-id: 68dj1ohqe1mn9o5s6hr1vftqj4qk8klm - RespHeader X-Varnish: 6666626 - RespHeader Age: 0 - RespHeader Via: 1.1 varnish (Varnish/5.2) - VCL_call DELIVER - VCL_return deliver - Timestamp Process: 1509298675.480891 0.060369 0.000025 - RespHeader Accept-Ranges: bytes - RespHeader Connection: keep-alive - Timestamp Resp: 1509298675.480928 0.060406 0.000037 - ReqAcct 291 0 291 347 1105 1452 - End
Amaroq's search for #inktober: (which gives a clickable hashtag that works)
* << Request >> 6395910 - Begin req 6395909 rxreq - Timestamp Start: 1509298885.938561 0.000000 0.000000 - Timestamp Req: 1509298885.938561 0.000000 0.000000 - ReqStart 47.49.35.242 65326 - ReqMethod GET - ReqURL /api/v1/accounts/search?limit=5&q=inktober - ReqProtocol HTTP/1.1 - ReqHeader Host: social.cheesebsd.com - ReqHeader Connection: keep-alive - ReqHeader Accept: */* - ReqHeader User-Agent: DireFloof/1.1.6 (iPhone; iOS 11.1; Scale/2.00) - ReqHeader Accept-Language: en-US;q=1 - ReqHeader Authorization: Bearer REDACTED - ReqHeader Accept-Encoding: br, gzip, deflate - ReqHeader X-Forwarded-For: 47.49.35.242 - VCL_call RECV - VCL_return pass - VCL_call HASH - VCL_return lookup - VCL_call PASS - VCL_return fetch - Link bereq 6395911 pass - Timestamp Fetch: 1509298886.000595 0.062033 0.062033 - RespProtocol HTTP/1.1 - RespStatus 400 - RespReason Bad Request - RespHeader server: Cowboy - RespHeader date: Sun, 29 Oct 2017 17:41:25 GMT - RespHeader content-length: 45 - RespHeader content-type: application/json; charset=utf-8 - RespHeader cache-control: max-age=0, private, must-revalidate - RespHeader x-request-id: d4pj31jqof8lkpm7jbv83qjo1g0oq376 - RespHeader X-Varnish: 6395910 - RespHeader Age: 0 - RespHeader Via: 1.1 varnish (Varnish/5.2) - VCL_call DELIVER - VCL_return deliver - Timestamp Process: 1509298886.000629 0.062068 0.000035 - RespHeader Connection: keep-alive - Timestamp Resp: 1509298886.000659 0.062097 0.000029 - ReqAcct 316 0 316 332 45 377 - End
Pawoo's search for #inktober (provides no results):
* << Request >> 4626114 - Begin req 4626113 rxreq - Timestamp Start: 1509298823.737278 0.000000 0.000000 - Timestamp Req: 1509298823.737278 0.000000 0.000000 - ReqStart 47.49.35.242 65316 - ReqMethod GET - ReqURL /api/v1/search?q=%23inktober - ReqProtocol HTTP/1.1 - ReqHeader Host: social.cheesebsd.com - ReqHeader Connection: keep-alive - ReqHeader Accept: application/json - ReqHeader User-Agent: PawooiOSApp/#Unknown - ReqHeader Authorization: Bearer REDACTED - ReqHeader Accept-Language: en-us - ReqHeader Accept-Encoding: gzip, deflate - ReqHeader X-Forwarded-For: 47.49.35.242 - VCL_call RECV - VCL_return pass - VCL_call HASH - VCL_return lookup - VCL_call PASS - VCL_return fetch - Link bereq 4626115 pass - Timestamp Fetch: 1509298823.842061 0.104784 0.104784 - RespProtocol HTTP/1.1 - RespStatus 200 - RespReason OK - RespHeader server: Cowboy - RespHeader date: Sun, 29 Oct 2017 17:40:22 GMT - RespHeader content-length: 51020 - RespHeader content-type: application/json; charset=utf-8 - RespHeader cache-control: max-age=0, private, must-revalidate - RespHeader x-request-id: s6ek6obm5f5hhajo9f3ogaqj62afkog6 - RespHeader X-Varnish: 4626114 - RespHeader Age: 0 - RespHeader Via: 1.1 varnish (Varnish/5.2) - VCL_call DELIVER - VCL_return deliver - Timestamp Process: 1509298823.842099 0.104821 0.000037 - RespHeader Accept-Ranges: bytes - RespHeader Connection: keep-alive - Timestamp Resp: 1509298823.842165 0.104888 0.000067 - ReqAcct 281 0 281 348 51020 51368 - End
I think part of the issue here is client side quirks for how searches are being handled, but obviously Pleroma is not handling any calls to /api/v1/accounts/search.
Edited by feld