-
Notifications
You must be signed in to change notification settings - Fork 293
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
firebase / firestore / grpc-node error: Path must be a string. Received 2726 #412
Comments
I am also having this issue. |
I am having this issue too! Might be something with the node version not being compatible. Google Cloud's SDK sometimes is node 10 only |
We are having the same issue, adding our stack trace in here:
This is being triggered only when deployed via now using the following code (snippets pulled out for relevance):
|
Thanks for posting @joonhocho. I believe this issue is very likely to be fixed in the ncc 0.19 beta, which hasn't yet been released out into If you're able to provide a sample replication for the issue that I can test against the ncc beta we can confirm that for definite, otherwise that release should be rolling out within the next week. |
@guybedford fwiw I can reproduce this in a simple app with the following require calls (its most likely just
|
Just checking in to see if any insight/update on here? This is preventing some of our functions from running properly on Now since the Firebase 6 updates? |
@FredKSchott Thanks, I was able to get this code to fail in
|
This is resolved in ncc @0.19. |
Would we still need a release of the |
Yes, would love some info on when we can expect this to be usable on zeit/now, currently using Google Cloud for the Pika CDN as a workaround for this |
Is there any way to make this fix work with now? |
If all that is needed is a version bump in |
@leerob , I tried creating a fork of now-builders and bump ncc version in @now/node to 0.19.1, but still no luck. https://github.com/lemol/now-builders/blob/991e9a4b5261af67fbf6f07e0a976001eca4ed26/packages/now-node/package.json#L14 Even specifying my custom builder { use: "@lemol/now" }, now-cli still using version 0.18.5 of @zeit/ncc. |
@lemol if you were able to make the now-builders tests pass after bumping I'm interested in how you solved it. |
All, you can follow the |
Why is this closed? Is there a fix for this anywhere? |
@slessans the ncc bug itself is closed and was released in ncc 0.19.x |
@ywg-jean thank you! Is there a simple way of using zeit cli locally with ncc to unblock development in the meantime? This is my first zeit project, so I'm new to the system. |
@slessans a simple way not really. Also note that as it is the PR may not work with typescript code because of the last open regression on #434 (see the last comment for a possible workaround but that's too deep for me at the moment) |
How are these tangential issues closed if there is no valid workaround posted and it is still causing the same error!??! |
The node and node-server builders with the fixes have been released under @canary they built my project with firebase-admin 8.2.x just fine. |
Yes, I follow that @jeantil (and am testing now moving our now.json to point to the |
I just updated to point to
we are now seeing:
|
@agrohs This error indicates that you must use a new version of Node. Today, ZEIT Now defaults to Node 8.10.x but you can enable Node 10.x by assigning Also see the Node 10 blog post from last week. |
Thanks @styfle, just saw that Node 10 post last night and added the engines into our package.json and all finally working. Looking forward to the ncc update moving from canary to released but at least working on canary for now! |
I am getting this issue now. I am using node 8 on firebase cloud functions. |
I am trying to deploy a function using
firebase-admin
to zeit using now 2.The error happens when I try to save data to firebase's
firestore
.I get the following error saving to
firestore
:Problem is caused by the following part of the compiled code:
As you can see below, path.dirname is called with number 2726, not string.
The original source code for the above snippet is this:
https://github.com/grpc/grpc-node/blob/master/packages/proto-loader/src/index.ts#L327
I've tried both
@now/node
and@now/node@canary
with latest packages.The text was updated successfully, but these errors were encountered: