developerFolio
developerFolio copied to clipboard
unable to run
unable to npm start
error is ----
npm start
[email protected] start node fetch.js && react-scripts start
Fetching profile data for YOUR GITHUB USERNAME HERE Fetching Medium blogs data for YOU MEDIUM USERNAME HERE node:_http_client:160 throw new ERR_UNESCAPED_CHARACTERS('Request path'); ^
TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
at new NodeError (node:internal/errors:377:5)
at new ClientRequest (node:_http_client:160:13)
at Object.request (node:https:356:10)
at Object.
Node.js v18.2.0
The issue is with the "MEDIUM_USERNAME" at the .env file, just comment it out or remove if if you're not going to use it.
Example:
// README
// This is only a .env example
// Do not change this file, adding your GITHUB TOKEN here!
// Use cp or mv (like this: cp env.example .env), then edit .env with your GITHUB TOKEN.
// IMPORTANT: Don't forget to add to update your .gitignore with .env (to avoid making your key public!)
REACT_APP_GITHUB_TOKEN = "token"
GITHUB_USERNAME = "username"
// Set to true to fetch profile data from GitHub (remember to remove all components relying on GitHub data if set to false)
USE_GITHUB_DATA = "true"
// Set to your username in order to fetch blog data from Medium (otherwise, hardcoded values from Blogs.js are used)
<!-- MEDIUM_USERNAME = "" -->
Yeah that's the problem, thanks for resolving this @luisgcenci!
thanks