Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved JSON config display in the front-end

    PeerTube
    4
    8
    235
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rmdes
      rmdes last edited by

      This is only happening since 3.3.0 but it seems the config is being displayed on the front-end

      561d1c7f-5d42-42fb-a138-d0bad64e51db-image.png

      ","css":""}},"search":{"remoteUri":{"users":true,"anonymous":false},"searchIndex":{"enabled":false,"url":"","disableLocalSearch":false,"isDefaultSearch":false}},"plugin":{"registered":[{"name":"livechat","version":"4.0.0","description":"PeerTube plugin livechat","clientScripts":{"dist/client/videowatch-client-plugin.js":{"script":"dist/client/videowatch-client-plugin.js","scopes":["video-watch"]},"dist/client/common-client-plugin.js":{"script":"dist/client/common-client-plugin.js","scopes":["common"]},"dist/client/admin-plugin-client-plugin.js":{"script":"dist/client/admin-plugin-client-plugin.js","scopes":["admin-plugin"]}}},{"name":"creative-commons","version":"1.0.1","description":"Standardized display of Creative Commons licenses. Uses short identifiers like CC BY-SA 4.0 instead of descriptive text.","clientScripts":{"client/video-watch-client-plugin.js":{"script":"client/video-watch-client-plugin.js","scopes":["video-watch"]}}},{"name":"tv-streaming","version":"1.0.1","description":"Chromecast and AirPlay support for PeerTube.","clientScripts":{"dist/common-client-plugin.js":{"script":"dist/common-client-plugin.js","scopes":["common"]}}},{"name":"background-play","version":"0.0.5","description":"Play videos in background when mobile screen is locked.","clientScripts":{"dist/common-client-plugin.js":{"script":"dist/common-client-plugin.js","scopes":["common"]}}},{"name":"simplelogo","version":"0.0.5","description":"Plugin that let you change logo and favicon on your PeerTube instance.","clientScripts":{"client/common-client-plugin.js":{"script":"client/common-client-plugin.js","scopes":["common"]}}},{"name":"featured-page","version":"0.0.1","description":"Adds a page with featured channels and featured videos","clientScripts":{"client/common-client-plugin.js":{"script":"client/common-client-plugin.js","scopes":["common"]}}}],"registeredExternalAuths":[],"registeredIdAndPassAuths":[]},"theme":{"registered":[],"default":"default"},"email":{"enabled":true},"contactForm":{"enabled":true},"serverVersion":"3.3.0","serverCommit":"","transcoding":{"hls":{"enabled":true},"webtorrent":{"enabled":true},"enabledResolutions":[240,480],"profile":"default","availableProfiles":["default"]},"live":{"enabled":true,"allowReplay":true,"maxDuration":-1,"maxInstanceLives":20,"maxUserLives":3,"transcoding":{"enabled":true,"enabledResolutions":[480,720],"profile":"default","availableProfiles":["default"]},"rtmp":{"port":1935}},"import":{"videos":{"http":{"enabled":true},"torrent":{"enabled":true}}},"autoBlacklist":{"videos":{"ofUsers":{"enabled":false}}},"avatar":{"file":{"size":{"max":4194304},"extensions":[".png",".jpeg",".jpg",".gif",".webp"]}},"banner":{"file":{"size":{"max":4194304},"extensions":[".png",".jpeg",".jpg",".gif",".webp"]}},"video":{"image":{"extensions":[".png",".jpg",".jpeg",".webp"],"size":{"max":4194304}},"file":{"extensions":[".webm",".ogv",".ogg",".mp4",".mkv",".mov",".qt",".mqv",".m4v",".flv",".f4v",".wmv",".avi",".3gp",".3gpp",".3g2",".3gpp2",".nut",".mts",".m2ts",".mpv",".m2v",".m1v",".mpg",".mpe",".mpeg",".vob",".mxf",".mp3",".wma",".wav",".flac",".aac",".m4a",".ac3"]}},"videoCaption":{"file":{"size":{"max":4194304},"extensions":[".vtt",".srt"]}},"user":{"videoQuota":-1,"videoQuotaDaily":-1},"trending":{"videos":{"intervalDays":7,"algorithms":{"enabled":["best","hot","most-viewed","most-liked"],"default":"most-viewed"}}},"tracker":{"enabled":true},"followings":{"instance":{"autoFollowIndex":{"indexUrl":""}}},"broadcastMessage":{"enabled":true,"message":"Work in progress, context: ,"level":"info","dismissable":true},"homepage":{"enabled":false}}'

      1 Reply Last reply Reply Quote 0
      • rmdes
        rmdes last edited by

        I searched for this error on the github official repo but i can't find anything remotely related to this https://github.com/Chocobozzz/PeerTube/issues?page=9&q=is%3Aissue+JSON
        Does anyone have the same on their peertube instance ?

        rmdes 1 Reply Last reply Reply Quote 0
        • rmdes
          rmdes @rmdes last edited by

          I also removed all plugins & themes to see if any of those are the cause of this, but it does not change anything, this json output keeps appearing on top of every page on the front-end..

          luckow 1 Reply Last reply Reply Quote 0
          • luckow
            luckow translator @rmdes last edited by

            @rmdes Nope. Looks strange to me.

            Pronouns: he/him | Primary language: German

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              We are not seeing this in https://videos.cloudron.io/ . Do you see this in all browsers? It could be that the content-type is not set correctly and the browser is thus showing raw text. Do you see any errors in browser console?

              rmdes 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                Also, do you see this in a new install?

                1 Reply Last reply Reply Quote 0
                • rmdes
                  rmdes @girish last edited by

                  @girish This can be put to solved.

                  Explanation :

                  I had an Ackee tracking javascript snippet code in the "custom javascript" setting and for some reason this was creating this error, I removed it and all is fine now.
                  b1c26478-344d-4865-b6b7-970c42cb8f3d-image.png

                  it seems this area of the config should not be used for this purpose.

                  i'll use the matomo plugin that comes as a plugin to have stats, and it's all going to be fine !

                  nebulon 1 Reply Last reply Reply Quote 0
                  • nebulon
                    nebulon Staff @rmdes last edited by

                    @rmdes actually the issue might be that your snipped is wrapped in html script tags, while the input field expects javascript.

                    1 Reply Last reply Reply Quote 2
                    • First post
                      Last post
                    Powered by NodeBB