I've written an authentication request that works with the request module but fails to return the desired 'authentication token' cookie with the node-fetch module that I'm trying to move towards since 'request' has been deprec...
I am trying to get 200 status code in response, but as a result it's ETIMEDOUT. I can't understand, how is it possible that I can grab successful response via postman, but same via node-fetch responding with ETIMEDOUT always. Here is an examp...
How do I run a javascript program in node.js that makes a local fetch call to a server running on my local machine?  I have a local express server that is listening on port 4001:   const express = require('express'); const app = express();...
I am developing a web app using node.js and express.js.  Here is the working cURL command that I would like to convert to javascript using the node-fetch module.  curl -X GET -H "X-Parse-Application-Id: APPLICATION_ID" -H "X-Parse-REST-AP...
I am a total newbie to Javascript and trying to set up a bridge between two of the services I use. The goal is simply take body or the request, do a promise api call to another service to respond with the body of that api call. I have been able to ta...
I have a function defined in a module that is supposed to do a fetch and return the response. I am having trouble returning the response from the fetch. The calling function gets the return value as "undefined".  I am new to JavaScript and No...
I'm using node-fetch to make a call from one API to another one, however when an error occurs in "API 2", the success callback runs.  I'm not sure if this is intended behaviour or not and if you're supposed to check the response f...
Alright so my problem is that in the first set of console.log(streamXXXX)s, where XXXX are the various variables, when I read their values they all read as they should, while in the second set they read as undefined. Is this a scope issue? Maybe an A...
I am using an existing API call to send a file to our cloud provider via Nodejs.  I have seen several different methods of doing this online, but figured I would stick to using "fetch" as most of my other API calls have been using this as wel...
I'm working for a project for a course where I need to chain multiple API calls together.  Currently everything in the first API call function executes and shows in the terminal but everything after the first API call doesn't do anything.  I&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.