You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run a simple auth function on AWS Lambda using Realm-js with Server API Key authentication. When hitting the endpoint I get a node error.
Goals
I am trying to authenticate a server user using Realm
Expected Results
return the user object
Actual Results
ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module '/var/task/node_modules/realm/compiled/napi-v4_linux_x64/realm.node'Require stack:- /var/task/node_modules/realm/lib/index.js- /var/task/dist/login.js- /var/runtime/UserFunction.js- /var/runtime/index.js","stack":["Runtime.ImportModuleError: Error: Cannot find module'/var/task/node_modules/realm/compiled/napi-v4_linux_x64/realm.node'","Require stack:","- /var/task/node_modules/realm/lib/index.js","- /var/task/dist/login.js","- /var/runtime/UserFunction.js","- /var/runtime/index.js"," at _loadUserApp (/var/runtime/UserFunction.js:100:13)"," at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)"," at Object.<anonymous> (/var/runtime/index.js:43:30)"," at Module._compile (internal/modules/cjs/loader.js:1063:30)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)"," at Module.load (internal/modules/cjs/loader.js:928:32)"," at Function.Module._load (internal/modules/cjs/loader.js:769:14)"," at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)"," at internal/main/run_main_module.js:17:47"]}
Steps to Reproduce
Deploy the following function to Lambda and make a post request to it.
Thanks @kneth! This should be included in the docs until it's fixed. I tried the work around in #2509 but its not working for me. Still getting the same error. I think we'll hold off using Realm for now. Thanks for the help!
I am trying to run a simple auth function on AWS Lambda using Realm-js with Server API Key authentication. When hitting the endpoint I get a node error.
Goals
I am trying to authenticate a server user using Realm
Expected Results
return the user object
Actual Results
Steps to Reproduce
Deploy the following function to Lambda and make a post request to it.
Code Sample
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: