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

Library completely not work #22

Open
hamedsharifi opened this issue Nov 3, 2021 · 2 comments
Open

Library completely not work #22

hamedsharifi opened this issue Nov 3, 2021 · 2 comments

Comments

@hamedsharifi
Copy link

Hello
When I run :

client.addClientActionListener(new ClientActionListener() {
            @Override
            public void onQRCodeScanRequired(BufferedImage qr) {
                System.out.println("Authentication required! Please scan the QR code!");
                File outputFile = new File("qr.jpg");
                try {
                    ImageIO.write(qr, "jpg", outputFile);
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        });
        int httpCode = client.openConnection();
        if (httpCode == 200) {
            System.out.println("Logged in successfully!");

        } else {
            System.out.println("Login failed! Code: " + httpCode);
        }

throw an exception :

Exception in thread "main" java.lang.IllegalStateException: Not a JSON Object: ["Cmd",{"type":"update"}] at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:91) at icu.jnet.whatsjava.helper.Utils.encodeValidJson(Utils.java:56) at icu.jnet.whatsjava.whatsapp.WABackendConnector.initOrRestoreSession(WABackendConnector.java:101) at icu.jnet.whatsjava.whatsapp.WABackendConnector.openConnection(WABackendConnector.java:58)

@wedjohn57
Copy link

Stopped working few days back.

java.lang.IllegalStateException: Not a JSON Object: ["Cmd",{"type":"update"}] at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:91) ~[gson-2.8.7.jar:na] at icu.jnet.whatsjava.helper.Utils.encodeValidJson(Utils.java:56) ~[WhatsJava-v1.0.2.jar:na] at icu.jnet.whatsjava.whatsapp.WABackendConnector.initOrRestoreSession(WABackendConnector.java:101) ~[WhatsJava-v1.0.2.jar:na]

@divyanshi2002-19
Copy link

The emoji ♾️is in purple box ....bt when delivered...it comes black....(not same as it is)

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