JSON config display in the front-end
-
This is only happening since 3.3.0 but it seems the config is being displayed on the front-end
","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}}'
-
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 ? -
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 ? -
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..
-
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?
@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.
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 !
-
@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.
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 !