~cadence/tube-devel

Error 500 - Search returns HTML but JSON is expected

Details
Message ID
<5VHuTXzyyVzzmr6pLCSfCw3m8e9XrszlXpA5-Ds1lUzSlx19qQbxlMmgQMgYd1_D_SMDwfKN8_Ik0c9GumoxSJuxnuqd1w3j-bqKvxf9iqs=@proton.me>
DKIM signature
pass
Download raw message
Hello CloudTube contributors,


As i visited tube.cadence.moe i had a bug.

Happened in booth Brave and Librewolf the same way:
1: i open https://tube.cadence.moe/
2: i put lEhYJEQmExE in the seachbar (its the url-path of a yt-video)
3: enter 
4: opens automatically https://tube.cadence.moe/search?q=lEhYJEQmExE
5: i get the following response 
           ◸―――――――――――――――――――――――――――――――――――――◹
     ···<  |        500. That's an error.        |  >···
           ◺―――――――――――――――――――――――――――――――――――――◿


 ╱  Are you visiting this website? Not sure what's going on?  ╲
 ╲             You might want to come back later.             ╱



FetchError: invalid json response body at http://newleaf.alphamethyl.barr0w.net/api/v1/search?q=lEhYJEQmExE reason: Unexpected token '<', "<html>
<h"... is not valid JSON
    at /var/home/cadence/cloudtube/node_modules/node-fetch/lib/index.js:273:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.code (/var/home/cadence/cloudtube/api/search.js:17:18)


I hope this helps :)
Juli
Reply to thread Export thread (mbox)