LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.13k stars 867 forks source link

Picture upload SyntaxError #2217

Closed Tealk closed 2 years ago

Tealk commented 2 years ago

Found a bug? Please fill out the sections below. 👍

For front end issues, use lemmy-ui

Issue Summary

I also get the message when I try to upload an icon or banner in the admin section. Like issue #1863

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

{
  opentelemetry_url: "http://otel:4137"

  hostname: "lemmy.rollenspiel.monster"
  bind: "0.0.0.0"
  port: 8536
  pictrs_url: "http://pictrs:8080"
  database: {
    database: "lemmy"
    user: "lemmy"
    password: "xxx"
    host: "postgres"
    port: 5432
    pool_size: 5
  }
  federation: {
    enabled: true
    allowed_instances: [
    ]
    blocked_instances: [
    ]
    strict_allowlist: true
    worker_count: 64
  }
  captcha: {
    enabled: false
    difficulty: "medium"
  }
  slur_filter:
    '''
    (fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|ni((g{2,}|q)+|[gq]{2,})[e3r]+(s|z)?|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?)
    '''
}

Steps to Reproduce

  1. Open Admin Center
  2. Click on upload icon
  3. Select image

Technical details

Tealk commented 2 years ago

have fix it with chown -R 991:991 volumes/pictrs and docker-compose restart pictrs