So having once again forgotten to update for a while I just switched from the 1.7 to 1.9 series, and ever since I’ve been getting a steady cadence of a new alert.

File “/app/app/utils.py”, line 1899, in decorated_view
raise Exception(“instance_is_private”)
Exception: instance_is_private

I saw a report in the GIT about private instances recently and a change to the api, is this something to do with it? I don’t see any visible impact to the instance but it’s rather annoying to get a few emails an hour about it.

  • Rimu@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    12 days ago

    I think this is caused by bots wandering around and requesting random stuff from the API.

    If you remove the ERRORS_TO environment variable then all error emails will stop. This setting is only intended for developers or admins investigating a known problem, not to be used all the time.

    Or if you set the ENABLE_ALPHA_API environment variable to ‘false’ the API will be turned off. Only do this if you’re not using a client app.

    • ShellMonkey@piefed.socdojo.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      12 days ago

      Fair enough, it was never too noisy before and just thought it was a way to get an alert when something went sideways and would need a prodding.

      • Rimu@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        12 days ago

        I guess PieFed should have different types / levels of errors and only email about serious stuff.

        • ShellMonkey@piefed.socdojo.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 days ago

          Would love to find an app with proper admin/mod support for it to get notices outside of the web interface. I’ve used Voyager for some time since it was able to show those in Lemmy, but it doesn’t seem they ever updated the PieFed support to offer here.