-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
TypeError: edge.initializeClrFunc is not a function && CoreClrEmbedding::Initialize - Failed to initialize CoreCLR, HRESULT: 0x80070057 #238
Comments
Take a look at https://github.com/agracio/edge-js-quick-start it has plenty of examples. |
Good morning! At first I wish all a merry xmas. An sry for my late. This is the one baackend file var helloWorld = edge.func(function () {/* helloWorld('JavaScript', function (error, result) { and here is another file with this content const getMessageAsync = edge.func({ getMessageAsync(null, function (error, result) { For both files i got the same error like this I've created a console app on .NET and thats work fine with nodejs and without edge-js but the performance is not so good. Thanks and best regards |
Can you create a GitHub repo that reproduces the error? |
Hello, here is a test project. I put also the csharp file to se how the methods declared. thx in advance and best regards |
Example uses |
In this solution i tried with edge instead of edge-js. |
I do not have a functioning Linux VM right now but have you tried running https://github.com/agracio/edge-js-quick-start? Take a look to see if it runs on your system. There are many inconsistencies in your code for example calling Method1 which does not have a supported signature only Method3 has supported code. Try enabling EDGE_DEBUG=1 env variable in terminal to see if there is any meaningful debug output. In And as per my previous comment |
Hello, I've created more methods with diffenrent signature because i was not sure wich signature supports edge-js. If you say the "Method3" have the right signature then i will try the next test with this. thx and best regards |
Have you tried running https://github.com/agracio/edge-js-quick-start on your machine? |
Hallo, I've tried yesterday again on a clean image but failed again.
and im using this basic function process.env.EDGE_USE_CORECLR=1
var edge = require('edge-js');
var helloWorld = edge.func(function () {/*
async (input) => {
return ".NET Welcomes " + input.ToString();
}
*/});
helloWorld('JavaScript', function (error, result) {
if (error) throw error;
console.log(result);
}); If i tried with docker then i get this warning: So do edge-js supports arm64 (raspberry pi4)? |
Edge.js supports ARM in main Linux distros on PC and maybe other devices but don't think it will work on Raspberry Pi. |
I've removed edge-js and solved it with gRPC combined with dotnet. It tooks to long for a simple call. Thx and best regards |
Did you try running https://github.com/agracio/edge-js-quick-start or enabling debug to diagnose the problem? |
I am curious to see debug output that might pinpoint to the underlying issue. |
Hello, Thank you for your response. I'm writing to inform you that I'm currently behind schedule on the project, as I've spent more time than anticipated implementing edge-js. Thank you again for your contribution and prompt responses. Best Regards |
Hello,
first sry for my english and I'm a beginner in the linux world und nodejs but I am developer in .NET.
I've the problem that i cant call a c# method in a .net dll with edge-js and i dont know how to fix this error.
This is the output after starting "pm2 log":
0|Example | CoreClrEmbedding::Initialize - Failed to initialize CoreCLR, HRESULT: 0x80070057 0|Example | TypeError: edge.initializeClrFunc is not a function 0|Example | at exports.func (/var/www/MySite/server/node_modules/edge-js/lib/edge.js:174:17) 0|Example | at Object.<anonymous> (/var/www/MySite/server/Example.js:4:30) 0|Example | at Module._compile (node:internal/modules/cjs/loader:1364:14) 0|Example | at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) 0|Example | at Module.load (node:internal/modules/cjs/loader:1203:32) 0|Example | at Module._load (node:internal/modules/cjs/loader:1019:12) 0|Example | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) 0|Example | at Module._compile (node:internal/modules/cjs/loader:1364:14) 0|Example | at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) 0|Example | at Module.load (node:internal/modules/cjs/loader:1203:32) PM2 | App [Example:0] exited with code [1] via signal [SIGINT] PM2 | App [Example:0] starting in -fork mode- PM2 | App [Example:0] online
I've installed
I've uninstall and install more times the 3 apps with diefferent versions/packages.
I've also reinstalled debian 12 because i tought that i do a mistake.
ChatGTP show me always the same solution and cant help at this point.
My goal is to call methods from a dll in nodejs with edge.
I would be very grateful for any help and support as I have not known what else to do for a week now.
Thanks and best regards
m.e.s.t.e
The text was updated successfully, but these errors were encountered: