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

Feature : Error send sticker #889

Closed
MRHRTZ opened this issue Oct 4, 2020 · 3 comments
Closed

Feature : Error send sticker #889

MRHRTZ opened this issue Oct 4, 2020 · 3 comments

Comments

@MRHRTZ
Copy link

MRHRTZ commented Oct 4, 2020

Describe the bug
I'm using sendImageAsSticker that catch Error: Input buffer contains unsupported image format and also using sendStickerFromUrl that catch Error: VipsOperation: class "webpsave_buffer" not found
IMG-20201004-WA0006

And i using latest version
IMG-20201004-WA0007

Steps to Reproduce
Steps to reproduce the behavior:

  1. I sending an image
  2. And reply the image which command i use to convert that to sticker
  3. The output must be a sticker from that image but that return [Error: Input buffer contains unsupported image format]
  4. And second i sending an command which that for send sticker from url
  5. The output must be sticker with url i gave but that return Error: VipsOperation: class "webpsave_buffer" not found

create() code
This is the code you use to create the client. e.g

    
    const options = {
        headless: headless,
        autoRefresh: true,
        restartOnCrash: start,
        cacheEnabled: false,
        useChrome: true,
        killProcessOnBrowserClose: true,
        throwErrorOnTosBlock: false,
        chromiumArgs: [
            '--no-sandbox',
            '--disable-setuid-sandbox',
            '--aggressive-cache-discard',
            '--disable-cache',
            '--disable-application-cache',
            '--disable-offline-load-stale-cache',
            '--disk-cache-size=0'
        ]
    }

    return options
}

Expected behavior
A clear and concise description of what you expected to happen.

DEBUG INFO
This is the info printed to the console when you start your app. It should look like this

Debug Info {
  WA_VERSION: 2.2039.9,
  PAGE_UA: WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36,
  WA_AUTOMATE_VERSION: 2.0.28,
  BROWSER_VERSION: HeadlessChrome/83.0.4103.116
}

Screenshots
If applicable, add screenshots to help explain your problem. Use headless: false to get screenshots

Error log
IMG-20201004-WA0006

My code
IMG-20201004-WA0008

Host (please complete the following information):

  • OS: Android

Additional context
Just Android OS have this error, if i test with Win10 or Linux like Kali it's working fine.

@MRHRTZ MRHRTZ changed the title [Error: Input buffer contains unsupported image format] from sendImageAsSticker and Error: VipsOperation: class "webpsave_buffer" not found from sendStickerFromUrl Feature : Error send sticker Oct 6, 2020
@smashah
Copy link
Member

smashah commented Oct 7, 2020

There's an issue with your sharp install. And what do you mean you're using android os? Are you running this code on android??

@MRHRTZ
Copy link
Author

MRHRTZ commented Oct 7, 2020

What i gonna do with my sharp module?

This is my sharp version
IMG-20201007-WA0022

Before that im failed install sharp and install libvips so the sharp success installed

Yes i'm running this code from android, i'm using ubuntu LTS 18.04, that was installed on termux

@smashah
Copy link
Member

smashah commented Oct 11, 2020

@MRHRTZ I'm pretty sure the issues are arising from the fact that you're running this as root.

Also please see this: https://sharp.pixelplumbing.com/install#prerequisites

I suggest waiting for #875 also.

If you find out the solution please post it here. Closing for now thanks.

@smashah smashah closed this as completed Oct 11, 2020
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

2 participants