Skip to content

ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: application/json', url=URL('http://a... #1019

@sentry-io

Description

@sentry-io

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

No one assigned

    Labels

    area: backendRelated to internal functionality and utilitiescategory: utilitiesRelated to utilitiesstatus: approvedThe issue has received a core developer's approvaltype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions