LakeYS / Discord-Trivia-Bot

TriviaBot: Play trivia in Discord! Powered by discord.js and OpenTDB, with 24 categories and three modes of play.
Apache License 2.0
84 stars 39 forks source link

The "snekfetch" package has been deprecated and should be replaced #139

Closed LakeYS closed 3 years ago

LakeYS commented 5 years ago

EDIT: As of 2019/1, the package is now throwing a seemingly benign error:

Exit with non-zero code, exporting game data...
Game exported to ./game.17.json.bak
url.js:152
    throw new ERR_INVALID_ARG_TYPE('url', 'string', url);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Rec
eived type undefined
    at Url.parse (url.js:152:11)
    at urlParse (url.js:146:13)
    at Url.resolve (url.js:661:29)
    at Object.urlResolve [as resolve] (url.js:657:40)
    at ClientRequest.request.once (C:\Content\_Dev\Discord-Trivia-Bot\node_modul
es\snekfetch\src\node\index.js:90:25)
    at Object.onceWrapper (events.js:273:13)
    at ClientRequest.emit (events.js:182:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:555:21
)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
    at TLSSocket.socketOnData (_http_client.js:441:20)

The package in question: https://www.npmjs.com/package/snekfetch