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

Download Stuck #133

Closed
AngangGuo opened this issue May 28, 2021 · 4 comments
Closed

Download Stuck #133

AngangGuo opened this issue May 28, 2021 · 4 comments

Comments

@AngangGuo
Copy link

I tried to download a csv file from a page and it stuck when execute download.Path() or download.Failure(), etc.

HTML Source code:

<a class="ActiveLink" title="CSV (comma delimited)" alt="CSV (comma delimited)" onclick="$find('ctl32').exportReport('CSV');" href="javascript:void(0)" >CSV (comma delimited)</a>

Go code:

download,err:=page.ExpectDownload(func() error {
	return page.Click("#ctl32_ctl05_ctl04_ctl00_Menu > div:nth-child(6) > a")
})
fmt.Println(err) // nil
fmt.Println(download.SuggestedFilename()) // "User Metrics.csv"

// Stuck Here
// =======

// stuck when execute one of the Failure(), Path() or SaveAs() functions.

// I can see the file is downloaded in the folder with a temporary name such as "32a609ac-c0c0-4e87-8bd6-ed4d69c6f474"
// And the file content is right, but the program stops here
fmt.Println(download.Failure())

// Press Ctrl + C from command line shows the following error message
exit status 2
The process tried to write to a nonexistent pipe.

How can I fix this problem?

@kumaraditya303
Copy link
Contributor

@AngangGuo Can you try this with the latest release v0.1400?

@kumaraditya303
Copy link
Contributor

Seems stale, reopen a new issue if this does not works with the latest version!

@AngangGuo
Copy link
Author

It works after updating to v0.1400.0. Great thanks. 👍

@atmnksd
Copy link

atmnksd commented Apr 5, 2024

This issue is reoccuring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants