-
Notifications
You must be signed in to change notification settings - Fork 73
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
Throwing error in serverless function. #182
Comments
I am experiencing the same issue when trying to initialise the client in a Netlify function. // functions/test.js
require('dotenv').config();
const faunadb = require('faunadb');
const q = faunadb.query;
const client = new faunadb.Client({
secret: process.env.FAUNADB_SECRET
});
exports.handler = function(event, context, callback) {
callback(null, {
statusCode: 200,
body: "Hello, World"
});
} // webpack.functions.js
const webpack = require('webpack');
module.exports = {
plugins: [
new webpack.DefinePlugin({
"global.GENTLY": false
})
]
}; Running locally with
|
Experiencing the same, with the same setup as @dijonmusters. |
This line was introduced in version 2.81. However, rolling back to version 2.8.0 did not fix the second issue, regarding the https module. |
2.7.0 appears to do the trick |
We're focussing on adding new drivers functionality and addressing the drivers issue people have been experiencing next week. If using the 2.7 fallback is difficult, it hopefully will only be for a short time. Thank you for your patience. |
Thanks for looking into this so quickly @danieltodonnell I can confirm that the rollback to 2.7.0 is working for me 🙂 |
Can also replicate the |
@danieltodonnell Any news on this? |
Yes! This has had all our minds on it for the past few days, and we have moved from an optional keep alive flag to a much more involved solution that we've been testing thoroughly. The good news is: we have developed a solution that we believe will solve this entirely. It will be released in our |
Great! Thanks for the update @danieltodonnell |
For anyone blocked by this issue, I am pleased to report that you should now be UN-blocked as-of version [email protected] https://www.npmjs.com/package/faunadb/v/2.9.2 This has been rigorously tested to have a smooth experience. If you experience any issues, feel free to tell us in Fauna Slack Community channel. We apologize for the delay and inconvenience. Thank you for your patience. |
I'm closing this issue but let us know if there are further issues |
I'm seeing the following error while trying to use the driver in a Cloudflare Worker:
@aequasi Sounds like you're using Workers, are you seeing this issue? I can open a new issue for this if that would be best. EDIT: Opened #207 for this. |
faunadb-js/src/Client.js
Line 73 in 6894c0e
is attempting to require dynamically.
This seems to warn during build of a serverless function (tested with Netlify) :
and ultimately an error on execution :
Do I need a specific webpack configuration?
The text was updated successfully, but these errors were encountered: