Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser.js error #51

Closed
astolfoismywaifu opened this issue Sep 29, 2023 · 5 comments
Closed

browser.js error #51

astolfoismywaifu opened this issue Sep 29, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@astolfoismywaifu
Copy link

Describe the bug
getting this:
/.cpr/browser.js @947:7
TypeError: L is undefined

To Reproduce
no idea, just tried visiting the base url on localhost

Expected behavior
i dont get this error

Screenshots
see below

Server details
if the issue is possibly on the server-side, then mention some of the following:

  • server OS / version: 1.9.6

Client details
if the issue is possibly on the client-side, then mention some of the following:

  • the device type and model: windows
  • browser version: Firefox 117

Additional context
error

@astolfoismywaifu astolfoismywaifu added the bug Something isn't working label Sep 29, 2023
@9001
Copy link
Owner

9001 commented Sep 29, 2023

hey, thanks for the report and for giving copyparty a go 👍

think i know how to fix it, but want to make sure I've got it right --

while the error is visible (or while visiting any site on localhost with that browser), could you open the JavaScript console (hotkey Ctrl-Shift-K), run the following two commands and copy the output?

  • localStorage.lang
  • localStorage.lang===undefined

also, do you happen to be running any other web stuff on this machine / do you recall ever accessing any other service on localhost?

@astolfoismywaifu
Copy link
Author

Command 1 outputted undefined
Command 2 outputted true

Also yeah im running a media server w/ sonarr/radarr on localhost

@9001
Copy link
Owner

9001 commented Sep 30, 2023

huh alright, that's not what i expected so good thing we checked -- could you open up the console in the tab that's showing the error, then refresh the tab, and run the following?

var r=['']; for (var a of 'acct dtheme lang u2sort'.split(' ')) r.push(window[a]); r.push(Object.keys(Ls)); r=r.join('], [')+']'; console.log(r);

there might be some relevant information being printed as the page is refreshed as well, so please include everything that appears starting from the refresh.

would also be great if you could hit Ctrl-U to show the html source of the page and copy/paste all of that into a textfile to attach here, but that would include the file listing from copyparty as well, so skip that if you've tried to view a folder that contains any filenames you wanna keep secret :>

@astolfoismywaifu
Copy link
Author

I attached the source and only removed the name of my pc.
copyparty.txt
The complete console output is below.

Uncaught TypeError: L is undefined
    <anonymous> http://localhost:6969/.cpr/browser.js?_=F3Dq:947
browser.js:947:7
Uncaught TypeError: treectl is undefined
    <anonymous> http://localhost:6969/.cpr/up2k.js?_=F3Dq:40
up2k.js:40:1
InstallTrigger is deprecated and will be removed in the future. localhost:6969:80:238
sha-ok util.js:124:22
TypeError: result is undefined content_script.js:131:4
Uncaught (in promise) TypeError: L is undefined
    up2k_init http://localhost:6969/.cpr/up2k.js?_=F3Dq:800
    <anonymous> http://localhost:6969/.cpr/up2k.js?_=F3Dq:26
    promise callback* http://localhost:6969/.cpr/up2k.js?_=F3Dq:25
up2k.js:800:24
GET
http://localhost:6969/favicon.ico
[HTTP/1.1 404 Not Found 0ms]

var r=['']; for (var a of 'acct dtheme lang u2sort'.split(' ')) r.push(window[a]); r.push(Object.keys(Ls)); r=r.join('], [')+']'; console.log(r);
], [astolfo], [bz b z], [en], [s], [eng,nor] util.js:124:22
undefined

@9001
Copy link
Owner

9001 commented Sep 30, 2023

Thanks! Did you by any chance run copyparty with --lang en or --lang=en ? In that case, that would be why, since it only understands eng currently. I'll fix that for the next ver tho 👌 👌

@9001 9001 closed this as completed in fc9b729 Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants