Closed Avey777 closed 5 months ago
Use the package from the most recent commit, set translateimage.timeout to 0, and show the results.
No matter how long the timeout is set, running main.go still prompts for timeout. So far, I haven't succeeded once
I can't reproduce this problem unless I slow down my internet very much. So, send me your ping, internet speed and full console output from the example in the dev branch.
PS C:\Users\Administrator\Documents\Dev\translateimage> ping translate.google.pl
Pinging translate.google.pl [216.58.223.195] with 32 bytes of data:
Reply from 216.58.223.195: bytes=32 time=14ms TTL=118
Reply from 216.58.223.195: bytes=32 time=14ms TTL=118
Reply from 216.58.223.195: bytes=32 time=14ms TTL=118
Reply from 216.58.223.195: bytes=32 time=14ms TTL=118
Ping statistics for 216.58.223.195:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 14ms, Maximum = 14ms, Average = 14ms
PS C:\Users\Administrator\Documents\Dev\translateimage>
PS C:\Users\Administrator\Documents\Dev\translateimage> git branch
* dev
main
PS C:\Users\Administrator\Documents\Dev\translateimage> go run .\example\main.go
2024/05/10 06:21:32 Driver and Firefox browser installed
2024/05/10 06:21:33 Playwright instance started
2024/05/10 06:21:33 Firefox instance started
2024/05/10 06:21:34 Created a new page
2024/05/10 06:21:35 Set the site URL to: https://translate.google.pl/?op=images&hl=en&sl=auto&tl=en
2024/05/10 06:22:06 playwright: timeout: Timeout 30000ms exceeded.
exit status 1
PS C:\Users\Administrator\Documents\Dev\translateimage>
This computer is in Ghana, and I think the network is very good. This problem shouldn't have occurred
I have written a draft patch. Please test it and send me the console output and the videos.zip file.
I have written a draft patch. Please test it and send me the console output and the videos.zip file.
https://tmp.link/f/663f285402799
PS C:\Users\Administrator\Documents\Dev\translateimage> go run .\example\main.go
2024/05/11 08:14:57 Driver and Firefox browser installed
2024/05/11 08:14:57 Playwright instance started
2024/05/11 08:14:57 Firefox instance started
2024/05/11 08:14:58 Created a new page
2024/05/11 08:15:00 Set the site URL to: https://translate.google.pl/?op=images&hl=en&sl=auto&tl=en
2024/05/11 08:15:31 playwright: timeout: Timeout 30000ms exceeded.
exit status 1
PS C:\Users\Administrator\Documents\Dev\translateimage>
I didn't mean the screen recording, but the videos.zip file, which contains recordings of the headless browser. After running these commands:
git clone https://github.com/spywiree/translateimage.git
cd translateimage
git checkout dev
cd example
go run .
the videos.zip file will be in the translateimage/example folder.
@spywiree-priv Found a solution?
I think so. Check now.
I think so. Check now.
Great, it can work now
I can access Google normally, but running main.go keeps timeout