-
-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Labels
area: backendRelated to internal functionality and utilitiesRelated to internal functionality and utilitiescategory: utilitiesRelated to utilitiesRelated to utilitiesstatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvaltype: bugSomething isn't workingSomething isn't working
Description
Sentry Issue: SIR-LANCEBOT-7P
ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: application/json', url=URL('http://api.wolframalpha.com/v2/query?input=y+%3D+W%E2%88%921(x)+if+%E2%88%921/e+%E2%89%A4+x+%3C+0&appid=EJTXQJ-PHQXE29HLK&output=JSON&format=image,plaintext&location=the+moon&latlong=0.0,0.0&ip=1.1.1.1')
File "discord/ext/commands/core.py", line 167, in wrapped
ret = await coro(*args, **kwargs)
File "bot/exts/utilities/wolfram.py", line 244, in wolfram_cut_command
pages = await get_pod_pages(ctx, self.bot, query)
File "bot/exts/utilities/wolfram.py", line 123, in get_pod_pages
json = await response.json(content_type="text/plain")
File "aiohttp/client_reqrep.py", line 1097, in json
raise ContentTypeError(
Unhandled command error: 0, message='Attempt to decode JSON with unexpected mimetype: application/json', url=URL('http://api.wolframalpha.com/v2/query?input=y+%3D+W%88%921(x)+if+%88%921/e+%89%A4+x+%3C+0&appid=EJTXQJ-PHQXE29HLK&output=JSON&format=image,plaintext&location=the+moon&latlong=0.0,0.0&ip=1.1.1.1')
This was caused by running .wa cut y = W−1(x) if −1/e ≤ x < 0
Metadata
Metadata
Assignees
Labels
area: backendRelated to internal functionality and utilitiesRelated to internal functionality and utilitiescategory: utilitiesRelated to utilitiesRelated to utilitiesstatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvaltype: bugSomething isn't workingSomething isn't working