denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.03k stars 5.39k forks source link

npm:firebase-admin printing cryptic error #19720

Closed zzaba closed 4 months ago

zzaba commented 1 year ago

MRE

import admin, { ServiceAccount } from "npm:firebase-admin";
import serviceKey from "./service-key.json" assert { type: "json" };

admin.initializeApp({
  credential: admin.credential.cert(serviceKey as ServiceAccount),
  databaseURL: "[REDACTED]",
});

const db = admin.database()

db.ref("path").get()

Output

[2023-07-05T05:42:54.558Z]  @firebase/database: FIREBASE WARNING: {}
...

¯\_(ツ)_/¯

bartlomieju commented 1 year ago

Appears to be blocked by node:http2 and @grpc/grpc-js package.

gustavomaltez commented 1 year ago

I'm having the same issue. Is there any working solution to use Firebase Admin SDK on Deno?

bartlomieju commented 4 months ago

@zzaba @gustavomaltez have you folks tried it recently? We made great strides in improving node:http2 and @grpc/grpc-js support in the recent releases and I think this issue might be no more now.

bartlomieju commented 4 months ago

I'm gonna close this one for now due to inactivity, please reopen if the problem persists.