-
Notifications
You must be signed in to change notification settings - Fork 604
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
module initialization error #1287
Comments
This very well could be an issue with gRPC not being able to run on Lambda (it uses a pre-compiled binary and needs some fancy support). @stephenplusplus : Is there a way to wrap the gRPC requirement with a try/except since it really should be an optional module? Seems we should fail gracefully if gRPC doesn't import correctly (ie, start the change here https://github.com/GoogleCloudPlatform/gcloud-node/blob/master/lib/pubsub/index.js#L32) ? |
We haven't designed it as an optional dependency thus far, i.e. we don't fallback to HTTP via the |
From the Lambda documentation, it looks like it shouldn't be too hard to get Node gRPC working on Lambda. In fact, I'm not really sure why it doesn't already work. I can look into this, but maybe not immediately. |
@pputhran thanks for reporting. You can track this over in grpc/grpc#6443. @jgeewax if you'd like us to have a fallback in place if gRPC cannot be installed, please open a new issue. |
Hello,
I am trying to use AWS lambda function to read off Kinesis stream and insert into Google Big Query.
It appears to work fine locally (on my mac) but when I deploy this to AWS and execute as AWS lambda function, I run into initialisation error
error stack:
Appears to be failing to invoke this
gcloud/node_modules/grpc/src/node/extension_binary/grpc_node.node
Below is the sample code
Sample code:
The text was updated successfully, but these errors were encountered: