#I'm trying from so long but it keeps showing same error

24 messages · Page 1 of 1 (latest)

true dove
#

I created a reddit command in my bot which shows a random post from reddit using the fetch function but it keeps showing this same error. Code : https://pastebin.com/DqVUxsKK

thin sierraBOT
#
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
true dove
#

Ping me in replies

normal widget
#

log meme

#

@true dove

true dove
normal widget
#

uh

#

log meme

#

print its value

true dove
normal widget
#

how did you define it

true dove
normal widget
#

response.json() returns a promise, you need to await it

true dove
#

i see

true dove
normal widget
#

that means the API call didn't reply with valid JSON

true dove
#

oh

#

it replied with a kind of html file

#

lemme try printing the meme now

#

it might have a body in which json is present

true dove
#

@normal widget