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

Unexpected Error Occurred #24

Open
richard-jr-lewis opened this issue Dec 10, 2024 · 3 comments
Open

Unexpected Error Occurred #24

richard-jr-lewis opened this issue Dec 10, 2024 · 3 comments

Comments

@richard-jr-lewis
Copy link

This issue started happening recently. I've tried resetting ALL data and reinstalling the extension.

On page load, the toaster in bottom left reads "Unexpected error occurred". The console lists an error in:

  • helper.js:9040
  • main.tsx:1 (I assume minified)
    image

In main.tsx, the catch is hit:

, Q = () => {
    var l, t, n;
    const e = w( () => b("getUserData"))
      , a = w( () => b("getTagMappings"))
      , [s,i] = f.useState(!1);
    return f.useEffect( () => {
        let o = null;
        return (async () => {
            try {
                const m = await a.mutateAsync()
                  , h = await e.mutateAsync();
                if (h.status !== "ok")
                    throw new Error("No data");
                N(document).forEach(p => E(p, h, m)),
                o = new MutationObserver(p => {
                    p.filter(u => u.type === "childList").flatMap(u => [...u.addedNodes].flatMap(N)).forEach(u => E(u, h, m))
                }
                );
                const y = document.querySelector("body");
                if (!y)
                    throw new Error("Body not found");
                o.observe(y, {
                    subtree: !0,
                    childList: !0
                })
            } catch (m) {
                console.error(m)
            } finally {
                setTimeout( () => i(!0), 2e3)
            }
        }
        )(),
        () => {
            o == null || o.disconnect()
        }
    }

In helper.js, it's this chunk. I assume this just reports an error:

nt = ({reject: h, resolve: p}, b) => {
                    o.runtime.lastError ? o.runtime.lastError.message === a ? p() : h(new Error(o.runtime.lastError.message)) : b && b.__mozWebExtensionPolyfillReject__ ? h(new Error(b.message)) : p(b)
                }

My settings look like this:
image

I am logged into Steam. Adding my CustomUrl and clicking "Log in" causes the error to occur again. Same with "Retry". However, these errors don't appear in the Console, only the one from page load.

My initial assumption is something going wrong with reading data from Steam and it being unhandled. Opening the settings window looks like it tries to read as well, then errors - which could explain it not displaying my saved details.

Thanks in advance for investigating.

@Spurlos
Copy link

Spurlos commented Dec 11, 2024

My investigation lead me to json.decode() that tries to decode an HTML output, rather than some expected JSON object. I haven't yet pinpointed the exact request, but it seems it's the haaxor proxy service return from some steam API.

@Haaxor1689
Copy link
Owner

thanks for reporting, I'll investigate after the holidays, just one question, what's your chrome version?

@richard-jr-lewis
Copy link
Author

image
Version 131.0.6778.205 (Official Build) (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants