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

Possible issue with promises #3

Open
Andreas-T opened this issue Oct 25, 2023 · 2 comments
Open

Possible issue with promises #3

Andreas-T opened this issue Oct 25, 2023 · 2 comments

Comments

@Andreas-T
Copy link

Hi.
Thanks for this function.

Not entirely sure what's going on, as this function generally works, but I had an issue with promises today where I get an Unhandled Promise Rejection, even though I can see that the FileMaker object has been instantiated prior to the call. All promises has been resolved prior to calling the function, except the final Promise.allSettled where the call to FileMaker.PerformScript is perfomed in the .then.

Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'FileMaker. PerformScript')

Could be something you'd want to look into.

I ended up using the fileMakerCall function from SeedCode as it was the only thing I could get to work.

@mrwatson-de
Copy link

Is it a typo problem? There is a rogue space after the dot in the name you quote.

@Andreas-T
Copy link
Author

Thanks for looking into it. Well spotted, yes that's probably the culprit. I wont be able to verify it unfortunately, but that rogue space would trigger an error.

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

2 participants