firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

Error: Digest method not supported

Open ghost-bullet opened this issue 3 years ago • 1 comments

I add this line in my file index.js : const crypto = require('crypto');

and after add , try upload function give me error this :

Screenshot 2022-06-04 180334

Why are you giving me this error firebase !

ghost-bullet avatar Jun 04 '22 15:06 ghost-bullet

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Jun 04 '22 15:06 google-oss-bot

Hi @ghost-bullet. I'm unable to reproduce the issue with the following code

const crypto = require('crypto');


const functions = require("firebase-functions");
const handleAnalyticsEvent = async (event) => {
  console.log(event.params);
};

exports.onArticleOpen = functions.analytics.event('in_app_purchase').onLog(handleAnalyticsEvent);

Can you try running node index.js on your file to see if no error occurs? If you are see the same error message, you might have a bug in your code unrelated to the Functions SDK.

taeold avatar Dec 29 '22 18:12 taeold

Hey @ghost-bullet. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Jan 09 '23 02:01 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@ghost-bullet if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Jan 12 '23 02:01 google-oss-bot