Naozumi520 / Remedy

Unofficial Discord Overlay support for macOS, support both x86 and arm64!
MIT License
33 stars 6 forks source link

Can't Login #22

Open deezondeezdev opened 1 year ago

deezondeezdev commented 1 year ago

Everytime I try to login on Remedy, the app will constantly ask to access my microphone and I can't type into the login boxes before the window shows up again SCR-20231009-soh

Rykian commented 12 months ago

Same here!

HydraxSkarrag commented 11 months ago

Since Mac 14.0!

AustrianGeek commented 11 months ago

Same here, the microphone-access-promt always comes.

logabot commented 9 months ago

Same. Some logs

[ ~ ] $ /Applications/Remedy\ Pro.app/Contents/MacOS/Remedy\ Pro --trace-warnings
Remedy Pro [client]: Starting services
Remedy Pro [client]: Version 2.0.3

DevTools listening on ws://127.0.0.1:64590/devtools/browser/a2fd6f70-de0a-4441-9517-a7d9dcfefcd6
2024-01-08 18:47:43.994 Remedy Pro Helper (Plugin)[50484:25051688] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
2024-01-08 18:47:45.074 Remedy Pro[50381:25051593] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
Remedy Pro [client]: Creating window...
Remedy Pro [info]: Error [TOKEN_INVALID]: An invalid token was provided.
(node:50381) UnhandledPromiseRejectionWarning: TimeoutError: Navigation timeout of 30000 ms exceeded
    at Timeout.<anonymous> (/Applications/Remedy Pro.app/Contents/Resources/app.asar/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js:27:33)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
(Use `Remedy Pro --trace-warnings ...` to show where the warning was created)
(node:50381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Can't get QR-code and login via email "always loading"

image
dblanch369 commented 8 months ago

Did anyone figure out how to get Sonoma to stop Remedy from asking for permissions all the time? (I'm on 2.0.1 like most folks who couldn't get 2.0.3 working)

Naozumi520 commented 8 months ago

Currently working on a solution for this problem. Will update you soon with my progress.

Sorry for being silence lately. Just wanted to give you a quick heads up that I've switched from using a Mac, which caused a bit of a delay in my updates. But no worries, I'm back in action now and fully committed to tackling this problem as I know the pain. Thanks for your patience and understanding!

dblanch369 commented 8 months ago

Much appreciated good sir. If we can help in any way, let us know. On Jan 25, 2024, at 1:05 PM, Naozumi @.***> wrote: Currently working on a solution for this problem. Will update you soon with my progress. Sorry for being silence lately. Just wanted to give you a quick heads up that I've switched from using a Mac, which caused a bit of a delay in my updates. But no worries, I'm back in action now and fully committed to tackling this problem as I know the pain. Thanks for your patience and understanding!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

JFIUG commented 7 months ago

Hello there! i think i know what the error is. I went and saw the app.asar file and then i saw this looong bit of code:

var QRCode = require('./../vendor/QRCode'),
    QRErrorCorrectLevel = require('./../vendor/QRCode/QRErrorCorrectLevel'),
    black = "\x1b[40m  \x1b[0m",
    white = "\x1b[47m  \x1b[0m",
    toCell = function (isBlack) {
        return isBlack ? black : white;
    },
    repeat = function (color) {
        return {
            times: function (count) {
                return new Array(count).join(color);
            }
        };
    },
    fill = function(length, value) {
        var arr = new Array(length);
        for (var i = 0; i < length; i++) {
            arr[i] = value;
        }
        return arr;
    };

module.exports = {

    error: QRErrorCorrectLevel.L,

    generate: function (input, opts, cb) {
        if (typeof opts === 'function') {
            cb = opts;
            opts = {};
        }

        var qrcode = new QRCode(-1, this.error);
        qrcode.addData(input);
        qrcode.make();

        var output = '';
        if (opts && opts.small) {
            var BLACK = true, WHITE = false;
            var moduleCount = qrcode.getModuleCount();
            var moduleData = qrcode.modules.slice();

            var oddRow = moduleCount % 2 === 1;
            if (oddRow) {
                moduleData.push(fill(moduleCount, WHITE));
            }

            var platte= {
                WHITE_ALL: '\u2588',
                WHITE_BLACK: '\u2580',
                BLACK_WHITE: '\u2584',
                BLACK_ALL: ' ',
            };

            var borderTop = repeat(platte.BLACK_WHITE).times(moduleCount + 3);
            var borderBottom = repeat(platte.WHITE_BLACK).times(moduleCount + 3);
            output += borderTop + '\n';

            for (var row = 0; row < moduleCount; row += 2) {
                output += platte.WHITE_ALL;

                for (var col = 0; col < moduleCount; col++) {
                    if (moduleData[row][col] === WHITE && moduleData[row + 1][col] === WHITE) {
                        output += platte.WHITE_ALL;
                    } else if (moduleData[row][col] === WHITE && moduleData[row + 1][col] === BLACK) {
                        output += platte.WHITE_BLACK;
                    } else if (moduleData[row][col] === BLACK && moduleData[row + 1][col] === WHITE) {
                        output += platte.BLACK_WHITE;
                    } else {
                        output += platte.BLACK_ALL;
                    }
                }

                output += platte.WHITE_ALL + '\n';
            }

            if (!oddRow) {
                output += borderBottom;
            }
        } else {
            var border = repeat(white).times(qrcode.getModuleCount() + 3);

            output += border + '\n';
            qrcode.modules.forEach(function (row) {
                output += white;
                output += row.map(toCell).join(''); 
                output += white + '\n';
            });
            output += border;
        }

        if (cb) cb(output);
        else console.log(output);
    },

    setErrorLevel: function (error) {
        this.error = QRErrorCorrectLevel[error] || this.error;
    }

};

and i see its trying to make a QR code. when i go on the remedy pro app, I can log in when the QR code's loading, but when it's loaded in, i don't have the chance to log in, That's what makes the login and (i think) server invite crash.

You might reimplement the QR code generator, or just steal with, let's say, authorization. and voilà, i think the job is done! you might just update this all on another version. 2.0.4 we might say.

Lutakh commented 7 months ago

Hello,

Same error here, the app will constantly ask to access my microphone.

Thanks for this app by the way.

JFIUG commented 7 months ago

weird tho, right?

On Tue, Feb 27, 2024 at 11:34 AM Lutakh @.***> wrote:

Hello,

Same error here, the app will constantly ask to access my microphone.

Thanks for this app by the way.

— Reply to this email directly, view it on GitHub https://github.com/Naozumi520/Remedy/issues/22#issuecomment-1966252632, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODWZIJBDCRZ5PXPHNX36QTYVWZDZAVCNFSM6AAAAAA5ZVKH5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGI2TENRTGI . You are receiving this because you commented.Message ID: @.***>

-- o/ | someone named main /\