25 questions
1
vote
0
answers
92
views
Crash in Napi::Function::New(env, FunctionName) call
I am working on an Electron project with node-api (for C++ addons). The app crashes, even after a full-build. The problem that I am facing occurs within the C++ template addon that I have made.
I have ...
1
vote
0
answers
138
views
v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope with NAPI plugin and workerpool
We have a REST web service written in TypeScript that runs on Node, and a large legacy C++ library that provides services for the web service. We use NAPI to provide JS bindings for the C++ library, ...
0
votes
0
answers
55
views
node native c++ code in electron unexpected character
This is my folder structure:
└── my-electron-project/
├── lib/
│ └── addon/
│ ├── build/
│ │ └── Release/
│ │ └── addon.node
│ ├── addon.cc
│ ├── binding.gyp
│ ...
0
votes
1
answer
138
views
using napi_get_typedarray_info to convert JS typed array to C array
I have an application which has JS and C layers. From JS layer, I call function to C layer passing the JS typed array. The C function has to convert to C array. I am doing the following. It looks like ...
0
votes
0
answers
2k
views
ERROR:crashpad_client_win.cc(867)] not connected - Electron js
Basically I'm calling a c++ function through addon into my Electron js javascript code. I have to use this function in a interval every 1 second. The function works fine however sometimes the app ...
0
votes
0
answers
70
views
Sql command not taking variables
I am using @el3um4s/node-mdb package, so when i sql the commands
SELECT *
FROM API_DATA
WHERE TRNo = 1002
AND VehicleNo = 'AP16TT1002'
like this i am getting correct query result
but when i tried ...
0
votes
2
answers
446
views
How to use dynamic where clause with placeholder in SQL for node REST API
I want to build a SQL query such that the filter clauses can be added dynamically with placeholder.
Ex :
router.get('/test',(req,res) => {
const {name , account , id} = req.query
const ...
-1
votes
1
answer
166
views
Using axios / fetch to fetch data from node toreact
Please I need a help on how to fetch a data from node to react, I have been stuck here for 2 weeks now.
Here are my backend code:
server.js:
require("dotenv").config();
const app = require(&...
0
votes
0
answers
13
views
How to store and manage images for selected users in MY SQL? [duplicate]
We are planning to upload Image only available for selected users. Here we have store the Image with visible users list in MuSql database.
At the same time consider a mobile API (Node JS), In that we ...
0
votes
1
answer
3k
views
How to get API call origin in NextJS API endpoint
I have an API set up that receives a token, and I want to store that token in a database. But I also want to store the origin URL.
Let's say my API endpoint is located at https://myapp.com/api/connect
...
0
votes
1
answer
467
views
Store function reference to call later from native module in N-API
I have a simple native Node.js addon that uses N-API.
It exports two functions, set_callback and call_callback:
set_callback takes a function parameter and assigns it to a global variable js_callback
...
0
votes
1
answer
1k
views
Is there possible to deploy multiple Nodejs Web API App in single azure app service?
My requirement is simple.
I already have an one azure app service (https://<app_service>.azurewebsites.net/) and I hosted a NodeJs Web API app under that above mentioned app service. It worked ...
0
votes
0
answers
188
views
node-gyp c++ chrome extension
i need to create chrome extension that can call c++ from js so i use nodeapi
and to achieve that I used the node-gyp
package.json
{
"name": "test",
"version": "0....
0
votes
0
answers
195
views
Node-API napi_make_callback behaviour with async JS function handlers
In my application, I am using Node-API, napi_make_callback to invoke a javascript function which returns some key connecting to different server.
The javascript callback function shall perform an ...
0
votes
1
answer
512
views
Need to get data from fixture JSON
I am struggling hard since yesterday getting the data from JSON, I don't understand why the fixture is not accessible. When I tried to get the ID, it gives me an error saying id isn't defined.
This ...