I installed the discord integration on my server and the bot is running perfectly but after running the bot command to configure seturl, it gets the following error:
"the specified URL sent an unexpected response."
At the bot prompt, it shows the following error:
"Connected to 1 guild(s). Executed 0 command(s) and sent 0 request(s) last minute. Up for 1 minute(s).
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at Request._callback (C:\Users\Administrator\Desktop\bot\app\commands\seturl.js:31:37)
at Request.self.callback (C:\Users\Administrator\Desktop\bot\node_modules\request\request.js:185:22)
at Request.emit (events.js:375:28)
at Request.<anonymous> (C:\Users\Administrator\Desktop\bot\node_modules\request\request.js:1161:10)
at Request.emit (events.js:375:28)
at IncomingMessage.<anonymous> (C:\Users\Administrator\Desktop\bot\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:481:28)
at IncomingMessage.emit (events.js:387:35)
at endReadableNT (internal/streams/readable.js:1317:12)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/discord/connectioncheck</pre>
</body>
</html>"