Closed roysG closed 4 years ago
@roysG Based on the error the file type was unsupported. Not related to open-wa
I uploaded regular jpg file, I can also send the base64
On Sun, 30 Aug 2020, 20:48 Mohammed Shah notifications@github.com wrote:
Closed #757 https://github.com/open-wa/wa-automate-nodejs/issues/757.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/open-wa/wa-automate-nodejs/issues/757#event-3707494206, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXZDOWJVHOXIWX34AONCW3SDKGF7ANCNFSM4QPT3WXQ .
I also tried with mp4 file and the error was th same, please check that you can send image
I will also paste the bse64 file
On Sun, 30 Aug 2020, 20:51 Liroy Sabah liroy1@gmail.com wrote:
I uploaded regular jpg file, I can also send the base64
On Sun, 30 Aug 2020, 20:48 Mohammed Shah notifications@github.com wrote:
Closed #757 https://github.com/open-wa/wa-automate-nodejs/issues/757.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/open-wa/wa-automate-nodejs/issues/757#event-3707494206, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXZDOWJVHOXIWX34AONCW3SDKGF7ANCNFSM4QPT3WXQ .
@roysG please send the dataurl using pastebin
On Sun, 30 Aug 2020, 20:54 Mohammed Shah notifications@github.com wrote:
@roysG https://github.com/roysG please send the dataurl using pastebin
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/open-wa/wa-automate-nodejs/issues/757#issuecomment-683450105, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXZDOX4C47EZRLY5LPRDGTSDKG4FANCNFSM4QPT3WXQ .
@roysG This file is working perfectly fine for me.
You will need to share the rest of your code surrounding the sendImage
to figure out what's going wrong.
Sorry, wrong image Please try this one: https://ctxt.io/2/AAAgwIMeFA
In case you will paste the base64 here: https://base64.guru/converter/decode/image
You will see the preview of the image without a problem
You can also try this video base64 https://ctxt.io/2/AAAgRAhCFA
The error of 512 is happen even i try to upload video from the whatsapp upload video file I do my tests on browser version: 81.0.4044.92
When i am trying to use with the latest chrome browser, i get these errors:
Please tell me, what browser version should i use, what i miss?
A week ago everything was fine
@roysG please use Pastebin in the future. These two files are working fine also.
@roysG Looks like CORS is causing issues again. for some reason this happens sometimes.
I tested on Chrome/84.0.4147.135.
You should upgrade your chrome on your machine or if that doesn't work set bypassCSP
to true
https://open-wa.github.io/wa-automate-nodejs/interfaces/configobject.html#bypasscsp
I am using the latest version of chrome: 85.0.4183.83 (Official Build) (64-bit) I added bypassCSP:true
But still i get all the cors error messages
I also tried with version: 84.0.4147.135, Still have the cors problem,
@roysG Can you try without the proxy
Works! But i need to use proxy, what should i do?
@roysG use a different proxy. Try luminati using this link:
https://luminati.io/?affiliate=ref_5f1b9ae8c7669177abfd9fb8
I've tested and it works fine. Eventually you can upgrade to the residential package
I used in the past in luminati, i need to pay them by usage, they are expensive.
What is the difference if i buy proxy v4 in their company or others?
it should be the same ip v4
I also tried to to it with luminati ip and i get the same error.
The problem is not connect to the type company of proxy, what may be the other options?
Do you need to use a proxy? Apparently some people are using the library just fine with 10+ clients on one machine
So why i have cors erros with proxy, please suggest for me some solution
If you need more information, just tell me
@roysG which proxy service are you using?
proxy6.net - ipv 4
@github-actions run
#727
#740
#725
#691
#705
#738
#761
#762
#763
#726
baf958b
corsFix
#757 20b6874
sendLinkWithAutoPreview
now returns message Id 44cb058
getMessageReaders
find the message before querying readers #756 301a712
forceStaleMediaUpdate
docs 106c88a
@roysG
Please set corsFix
to true
in your config
https://open-wa.github.io/wa-automate-nodejs/interfaces/configobject.html#corsfix
Describe the bug When sending image/video i get this error:
Failed to load resource: the server responded with a status of 415 (Unsupported Media Type)
Steps to Reproduce Steps to reproduce the behavior:
create() code This is the code you use to create the client. e.g
Expected behavior The image/video should be sent
DEBUG INFO This is the info printed to the console when you start your app. It should look like this
Host (please complete the following information):