GithubHelp home page GithubHelp logo

wppconnect-team / wppconnect-php-client Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 17.0 6.46 MB

Um simples cliente PHP que proporciona acesso fácil aos endpoints do WPPConnect Server.

License: Apache License 2.0

PHP 100.00%
php whatsapp wppconnect wppconnect-server

wppconnect-php-client's People

Contributors

bgastaldi avatar edgardmessias avatar ricardoramirezr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wppconnect-php-client's Issues

Several issues related with M1

Hi, great tutorial. I'm trying to install your system on Mac M1.

Because you're a docker wizard, maybe you can help me. I tried to find answers online but there are many pieces I have not much control over.

#1
Docker install worked.

#2
docker-compose up --build
Brings first error:
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
Fixed adding in docker-composer.yaml
platform: linux/amd64
After
image: mysql:5.7

#3
Running again docker-compose up --build Brings a new error:

...
#15 26.75 The chromium binary is not available for arm64.
#15 26.75 If you are on Ubuntu, you can install with: 
#15 26.75 
#15 26.75  sudo apt install chromium
#15 26.75 
#15 26.75 
#15 26.75  sudo apt install chromium-browser
...

For M1 Chromium already works. Can be installed with homebrew

brew install chromium
which chromium
/opt/homebrew/bin/chromium
chromium

Found several threads add these lines to .zshrc fix the issue of Chromium with M1

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`

Restart Terminal or run source ~/.zshrc
Then starts Chromium. It worked.
When back to Terminal noticed some errors, but remember it worked any way. These are errors, don't know if they are relevant

[17454:36099:1125/154359.196792:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(). If you don't see the END: message, this is crbug.com/1216328.
[17454:36099:1125/154359.198640:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] END: ReportBluetoothAvailability()
[17454:36099:1125/154359.198675:ERROR:chrome_browser_main_extra_parts_metrics.cc(235)] START: GetDefaultBrowser(). If you don't see the END: message, this is crbug.com/1216328.
[17454:36099:1125/154359.199755:ERROR:chrome_browser_main_extra_parts_metrics.cc(239)] END: GetDefaultBrowser()

The question is what would be the way to add those changes to be handled in the container?

Or if you realise other way to fix it.

Thanks

UnhandledRejection: Navigation timeout of 30000 ms exceeded

at /home/darma/wppconnect-server/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:106:111
at async FrameManager.navigateFrame (/home/darma/wppconnect-server/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:91:21)
at async Frame.goto (/home/darma/wppconnect-server/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:417:16)
at async Page.goto (/home/darma/wppconnect-server/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1156:16)

how to solve this

Falha Helper->fileToBase64

Visto a falha:

Warning: finfo_file(): Failed identify data 0:(null) in php
quando usado para converter a imagem para envio de media

Solução encontrada:
Function exemplo:
/**
* HELPER CONVERT FILE BASE64
* @return string
*/
public function fileToBase64(string $file): string
{
$type = image_type_to_mime_type(exif_imagetype($file));
return 'data:' . $type . ';base64,' . base64_encode(file_get_contents($file));
}

Usando a função image_type_to_mime_type

Abraço!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.