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

ZapierPromise does not use scoped prototype functionality #481

Open
codebycaleb opened this issue Feb 2, 2022 · 4 comments
Open

ZapierPromise does not use scoped prototype functionality #481

codebycaleb opened this issue Feb 2, 2022 · 4 comments

Comments

@codebycaleb
Copy link
Contributor

Bug Description

ZapierPromise does not adhere to bluebird's scoped prototypes recommendations regarding requireing bluebird.

Reproduction Steps

  1. Create an app that uses bluebird for promises
  2. Create a Zap using the app and test it via the editor

Errors will be logged that cite bluebird's documentation about not invoking the Promise constructor directly.

The code should work without errors.

Version Info

  • Version info: core: 11.2.0
  • App id: 154066
@xavdid
Copy link
Contributor

xavdid commented Feb 2, 2022

@codebycaleb do you have a screenshot of how dire the error messages look? Trying to gauge severity here. And does this only affect CLI apps which separately use bluebird promises? If so, seems fairly narrow. We were just talking about pulling the bluebird stuff out, but it's esoteric and working just fine, so we're hesitant to touch it if we can avoid it.

@codebycaleb
Copy link
Contributor Author

Yep! It's not mine though. 😅 Here's an obfuscated version:

And does this only affect CLI apps which separately use bluebird promises?

Yeah I think so! This app had a dependency for bluebird@^3.7.2. Definitely agreed on the narrow point - this is the first report I've ever seen and as far as I know this has essentially always been the case. :)

@xavdid
Copy link
Contributor

xavdid commented Feb 2, 2022

ok, cool! Good to know.

Yeah, it's the first I've heard of it too. We'll keep this open in case other people have the same issue, but it doesn't strike me as a priority.

@dpovey
Copy link

dpovey commented Feb 4, 2022

Just noting I have very similar symptoms but I am not using bluebird in my app directly, it's just imported as a dependency of zapier-platform-core

[email protected] /Users/dpovey/src/ppcsamurai/zapier-adpulse.io
└─┬ [email protected]
  └── [email protected]

When I try to test my Zap I get about 20% of the time the error:

image

And then when activating my Zap about a similar percentage:
image

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

No branches or pull requests

3 participants