menu
Node.js

# help

Ask questions about Node.js

Posts
Members
Search

OAuth 2 client credentials token received in postman but not in server

anyone can help me as I'm stuck to get an tokken from: https://www.parcel2go.com/api/docs/articles/intro.html Working fine in in postman: I have 2 solutions: …

thumbsup
0
message-simple
13

auth2 tokken works in postman but not on server - node js

anyone can help me as I'm stuck to get an tokken from: https://www.parcel2go.com/api/docs/articles/intro.html Working fine in in postman: I have 2 solutions: …

thumbsup
0
message-simple
0

Function evaluates to undefined when executed in production cloud instance only

In my node server I have this following line of code: When I'm in localhost, it succesfully creates a stream to google cloud storage and uploads the pdf file. When I deploy the code to a Now instance, bufferStream.end(Buffer.from(base64_data, 'base64')) evaluates to undefined,…

thumbsup
1
message-simple
7

How to chain async tests in mochajs?

I'm using http-mocks to test a controller I created. In one, test I'm checking if the user has been registered or not by checking the status code and in the following test I want to test if the data sent for the new user is correct. For this, I want to chain the second test to…

thumbsup
2
message-simple
3
matfire·22d

Express, Axios and React

Hello everyone, I am trying to build an api using Express. I've made routes for the user to login and register, and they work perfectly when working with Insomnia(Api testing client). The problem comes when I try to post data from my React frontend. …

thumbsup
0
message-simple
5
Manuel·25d

Learn N-API Recources

Documentation • https://nodejs.org/api/n-api.html Tutorials …

thumbsup
0
message-simple
1

Quick setup with ES6/7 for running scripts

I love node, but it's always a pain to get started with a new project due to all the boilerplate needed. I have a working project in node 6, I want to add a new script completely independent of the rest of the app using node 8+ (version doesn't really matter), I just want to…

thumbsup
0
message-simple
9

Handle old records after updating field's type

Hey. I've taken one of my fields in the Schema and changed it from string to a reference to an object (user). The field is called `created_by` and used to contain just the user's name as a string, but now references the user object. It works on all new items getting created,…

thumbsup
0
message-simple
1

File download

Hey, first off thanks for that awesome project. I have a problem with file downloads, and I think it is a problem with webkit itself, since it only appears in chrome and opera. When I download small files, everything works fine, but when I try to download files around 5mb, the…

thumbsup
0
message-simple
7

Handle update object if value does not exist

Hi there, I have a function to update my object `campaign`. I only use it to set a new assignee. It works fine if the campaign already has another assignee. However, since the `assigned_to` field is not required, some campaigns do not. In that case, the function fails: What is…

thumbsup
0
message-simple
3