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

ERR_MULTIPLE_CALLBACK on file.download() #2082

Closed
Aliaksandr-Kasko-JazzTeam opened this issue Oct 11, 2022 · 8 comments · Fixed by #2094
Closed

ERR_MULTIPLE_CALLBACK on file.download() #2082

Aliaksandr-Kasko-JazzTeam opened this issue Oct 11, 2022 · 8 comments · Fixed by #2094
Assignees
Labels
api: storage Issues related to the googleapis/nodejs-storage API. needs more info This issue needs more information from the customer to proceed. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@Aliaksandr-Kasko-JazzTeam
  1. Is this a client library issue or a product issue?
    yes

  2. Did someone already solve this?

  1. Do you have a support contract?
    no

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • OS: Win10 21H2
  • Node.js version: 16.13.2
  • npm version: 8.1.2
  • @google-cloud/storage version: 6.5.2

Steps to reproduce

Try to download a file:

  try {
    await file.download({
      destination: destination
    })
  } catch(e) {
    console.log(e);
  }

As the result catching error ERR_MULTIPLE_CALLBACK

@Aliaksandr-Kasko-JazzTeam Aliaksandr-Kasko-JazzTeam added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 11, 2022
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Oct 11, 2022
@ddelgrosso1
Copy link
Contributor

Hi @Aliaksandr-Kasko-JazzTeam thank you for opening an issue. Can you provide us with a bit more information, how often are you seeing this error? Was the code you provided previously working in a different version of the library? Do other operations (i.e. upload) work correctly?

@ddelgrosso1 ddelgrosso1 added the needs more info This issue needs more information from the customer to proceed. label Oct 11, 2022
@Aliaksandr-Kasko-JazzTeam
Copy link
Author

Hi, @ddelgrosso1.

  1. I see this error every time with this mentioned version of library.
  2. The code was working with previous versions of library (now I tried with 6.5.0).
  3. I can't try other operations like upload because our project is very complex (first we download a file, then we make computations, at last we upload another computed file).

@ddelgrosso1
Copy link
Contributor

ddelgrosso1 commented Oct 12, 2022

@Aliaksandr-Kasko-JazzTeam by chance have you tried the above on a platform other than Windows, if so what was the result? Is there anything special or different about destination argument? Could you provide a more detailed stack trace? Have you also recently changed versions of Node, if so from what version to 16.13.2.

I tried this in both a Linux and Mac environment with v6.5.2 and was unable to recreate the error you are seeing.

@ddelgrosso1 ddelgrosso1 self-assigned this Oct 12, 2022
@ddelgrosso1
Copy link
Contributor

I also tested this in a Windows 10 environment but did not see the issue. @Aliaksandr-Kasko-JazzTeam if you can provide the information from my previous comment I will investigate further.

@amerej
Copy link

amerej commented Oct 25, 2022

Don't know if it helps, but getting the same problem on macOS Monterey version 12.6, node version 14.17.6, @google-cloud/storage version 6.5.4.
Fixed by switching on node version 16.18.0 (LTS)

@ddelgrosso1
Copy link
Contributor

Thanks @amerej we believe we have found the cause of this issue and we will be releasing a fix shortly.

@Aliaksandr-Kasko-JazzTeam
Copy link
Author

@ddelgrosso1 sorry for my long response and big thanks for fix. Now it works for me

@ddelgrosso1
Copy link
Contributor

Thanks for letting me know @Aliaksandr-Kasko-JazzTeam. Glad this resolved your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/nodejs-storage API. needs more info This issue needs more information from the customer to proceed. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants