wppconnect-team / wppconnect-php-client Goto Github PK
View Code? Open in Web Editor NEWUm simples cliente PHP que proporciona acesso fácil aos endpoints do WPPConnect Server.
License: Apache License 2.0
Um simples cliente PHP que proporciona acesso fácil aos endpoints do WPPConnect Server.
License: Apache License 2.0
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
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
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!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.