try-puppeteer icon indicating copy to clipboard operation
try-puppeteer copied to clipboard

TypeError: Failed to fetch

Open Arstman opened this issue 6 years ago • 1 comments

hi, I installed backend and frontend on my vps, and to visit backend it shows:

"it works!"

which i assume it works, and i run frontend and always got:

TypeError: Failed to fetch

image

i thought this might be something wrong about my backend, so i set the backend point to try-puppeteer.appspot.com in app.js as below:

const BACKEND_HOST = ( 'https://backend-dot-try-puppeteer.appspot.com');

and still i got the same TypeError: Failed to fetch

any idea what i got wrong?

thanks?

Arstman avatar Nov 08 '18 13:11 Arstman

If you open up the network panel what request is it trying to make that's failing? If you're running locally you need to run the frontend and back separately.

frontend

yarn start

backend:

cd backend
yarn restart

ebidel avatar Jan 14 '19 22:01 ebidel