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
NodeJS - FailureException: Worker was unable to load function IsActiveSponsor: 'TypeError: isPlainObject is not a function' #335
Comments
@mhoeger - transferring this issue to node worker repo. Please investigate. Thanks! |
Hi @warrenbuckley ! Sorry for the delay. I'm having a busy week and haven't had time to try to repro this on my own, but one thing to check out is the Kudu portal to see if there's anything odd about your node modules? You can go to Kudu by going to: https://github-sponsor-check-deploy.scm.azurewebsites.net/ and "Debug Console" => CMD, |
@mhoeger is there any update on this at all please? |
Hi @warrenbuckley ! I can't repro your issue :/ I'm using your same code and GitHub actions and am able to see things working here: |
Is there anything specific about your environment you've changed? Ex: under "Configuration" => "General settings" => "Platform settings"? Ex: My platform is 32-bit |
Hi @mhoeger thanks for getting back to me General SettingsSo this seems that it could be very specific to my Azure Function & environment for it, if it can not be reproduced. Next stepsI will try and setup a new azure function resource and re-deploy it, but I am sure I will have the same experience as you Marie QuestionDoes the Azure Function team have any better tooling or ways for developers to debug Azure Functions or attach to the remote process at all, in order to see what is going on? Or is my only tool available to me is to see the logs for the function in the portal & try and figure out what is going on. |
Thanks @warrenbuckley ! If you could try too that would be great. The "Kudu" (scm) site is a good place to debug, although please also be careful because what you see is what is running in production. What I would do is make changes to the |
Azure Resource Settings & RegionLogs from VSCode deploy via extensionDeployed this way to save time setting up connecting a new GitHub Action pipeline to deploy to the test Azure Function App
As suspected I cannot reproduce the error/problem. Easy to migrate?Is there an easy way for me to migrate away from my faulty Azure Function to a new Azure Function?
|
Closed this @mhoeger as I managed to create a new Azure Function that is not freaking out on me & still deploys via GH Actions & transferred the domain over to this new function. Thanks for looking into this - if this ever comes up again (doubt it will) I will re-open this issue 😄 |
Sorry we weren't able to diagnose the weird behavior, please do re-open if you run into it again! |
Hello, I had a similar issue as described here: My code worked well on my local machine (using VS Studio) however failed on Azure with weird error messages reporting that modules (not always the same!) couldn´t be loaded. For the record one such error message: Maybe this "solution" is helpful to others that stumble upon this issue: Instead of re-instantiating a new Azure Function instance as described by @warrenbuckley , I stopped and restarted the Function App (Restart was not enough). This resolved my issue magically (no change in code). |
I got a similar issue too:
It turned out that deployment failed and broke the app. Deployment failed with this error
Probably because DevOps guy was applying infrastructure changes at the same time. |
Problem
After upgrading to the latest version 4.5.6 of @octokit/graphql a NodeJS serverless Azure Function now complains about
isPlainObject is not a function at Object.keys.forEach.key
If I revert the package.json dependency back to 4.5.4 then it continues to work as it once did.
This works fine locally with the Azure Functions CLI with VSCode, however once deployed to Azure it gives the following error and is tricky to debug further & pass info onto the NPM package owner of @octokit/graphql
Error
This is the same error reported here but it seems specific to once the code is in the Azure Infrastructure as I am able to run this Azure Function locally on my machine with no issues & with little debugging information available it is hard to pass on repro steps to the package author.
octokit/graphql.js#195
Investigative information
Please provide the following:
Repro steps
Expected behaviour
Actual behaviour
Related information
Provide any related information
function.json
Source
The text was updated successfully, but these errors were encountered: