Posts

Showing posts with the label server

OAuth Access Code working on Localhost but not working on server (e.g. nodechef)

OAuth Access Code working on Localhost but not working on server (e.g. nodechef) I'm developing a Web App using React and Meteor JS. On my localhost, I would call Patreon's Oauth API with a redirect link and after the user logs in and allows access to his profile, the user will be redirected to http://localhost:3000. From there I would get the access code from the URL and then make query calls to the API and it would work smoothly. Because it works, I decided to test it on a actual server like nodechef. To my surprise, after getting the code from the URL and using it to try to query the Patron OAuth paths via: var promise = patreonOAuthClient .getTokens(oauthGrantCode, redirectURL) var result = await promise.then(function(tokensResponse) { } ...... catch(function(err) { console.error('error!', err) }) I would get the following error on the server (nodechef) but not on my localhost server: error! Body { url: 'https://www...

Internet disconnects when I start a local server using node

Internet disconnects when I start a local server using node I am learning web development and for some recent projects I have to use react. I have initialized the project using create-react-app project-name but when I run yarn start , my internet suddenly stops working. I am connected to an open network with cyberoam login client. I am on Ubuntu 18.04 development environment and my npm version is 3.5.2 and node version is 8.10.0 I have to restart my computer to get the internet working again. I have tried to restart network-manager but that didn't help. If I don't spawn up a dev server, the internet works fine but the moment I start the server, the internet stops working. create-react-app project-name yarn start 3.5.2 8.10.0 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is ...