Questions tagged [node-api]

26 questions
1
vote
1 answer

Capturing stdout/stderr of Node-API module running in Electron

I'm developing a Node-API module together with an Electron application. The N-API module is running in the render process of Electron, since it has a pretty complex API, that would be hard to get through a context bridge, and I'm only planning on…
bruh_master
  • 33
  • 1
  • 3
1
vote
1 answer

Source: Microsoft JScript compilation error: While run nodejs project: WSH

Getting this error while run nodejs project. Following below commands. nodemon --exec src/app.js nodemon --exec src/server.js Below are the dependency
rvchauhan
  • 89
  • 8
1
vote
1 answer

How to iterate JavaScript array using Node-API

I'm building a Node.js addon using Node-API. Basically, my algorithm takes a js array as the input and then process it inside the addon and return it. To do any logic for the array I need to loop through it. But I don't know-how. Because I didn't…
0xdw
  • 3,755
  • 2
  • 25
  • 40
0
votes
0 answers

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 adding variables to it like SELECT * FROM…
Keshav
  • 1
  • 1
0
votes
0 answers

Angular 8 browser cache CORS policy issue with nodejs API

I'm facing this caching issue on my angular 8 website, it's working fine till hour and then throw CORS policy error while api call. After I clear the browser cache and reload, it start working fine again. Can anyone suggest a solution, for this I…
rvchauhan
  • 89
  • 8
0
votes
2 answers

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 nameFilter = name === '' ? ':nameVal' : `and username =…
0
votes
0 answers

In MERN app, API Request to node thorught react only getting the response back If refresh the node server after making the API request from react

Have MERN appication Everything was working fine when I was testing in POSTMAN. If you select a video file with POSTMAN. you will get correct error in response "That only Image should uploaded" which is what expected But tried same thing using…
0
votes
0 answers

DeprecationWarning: crypto.createCipher is deprecated.(used simplecrypt npm)

node src/index.js 68ce0c7d7fb3a63f3524ba8f02c1afe964ff5c63b249522e3f03d8c5d48ba9ccbea2446ce10746846691f1e5f80e58301768a075e01887ef95c55dc3a08805356f5caa7560d0b451fb1a577bf7ec2a56 message my secret (node:91056) [DEP0106] DeprecationWarning:…
venkat
  • 1
  • 1
0
votes
0 answers

Routing problem with Angular13 and Node 16

UPDATE: So, I'm putting this here because it's more relevant. I used another example from BobbyHadz and it's much better. https://www.digitalocean.com/community/tutorials/build-a-restful-api-using-node-and-express-4 So, the ONLY thing I've done is…
Peter The Angular Dude
  • 1,112
  • 5
  • 26
  • 53
0
votes
0 answers

How to store and manage images for selected users in MY SQL?

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 have to fetch the all list of image urls that are…
0
votes
1 answer

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 Now, I want to send a token from my website…
LCAYSS
  • 23
  • 4
0
votes
0 answers

Use C++ project with Node-API

I have a University project requirement to develop simple database management in C++, using binary files for storing database entries. The program is mean to run in the terminal but I've decided that is a good opportunity for me to work in a more…
Jesus Jimenez
  • 351
  • 1
  • 3
  • 13
0
votes
0 answers

strong-soap return wsdl different from soap

I am having a bit of an issue, and I hope someone may be able to help. Our company is switching from npm soap library to strong-soap for internal reasons. We are interfacing with an old server (soap 1.1) that we prefer not to modify. We can set up…
Tom Lee
  • 11
  • 1
  • 3
0
votes
1 answer

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 call_callback calls the js_callback using…
user7401478
  • 1,372
  • 1
  • 8
  • 25
0
votes
1 answer

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://.azurewebsites.net/) and I hosted a NodeJs Web API app under that above mentioned app service. It worked fine when calling the API with specified app service…
1
2