outlandishideas / kasia-boilerplate

:tophat: A universal application boilerplate with Kasia
MIT License
17 stars 1 forks source link

redux-saga error: uncaught #1

Open bmordan opened 7 years ago

bmordan commented 7 years ago

Having followed all the steps in the read me - I get this error

[1] ==> Kasia Boilerplate started at http://localhost:3000
[1] redux-saga error: uncaught
[1] at
[1]  Error: Not Found
[1]     at Request.callback (/Users/bernie/Code/wp-app/node_modules/superagent/lib/node/index.js:698:17)
[1]     at IncomingMessage.<anonymous> (/Users/bernie/Code/wp-app/node_modules/superagent/lib/node/index.js:922:12)
[1]     at emitNone (events.js:91:20)
[1]     at IncomingMessage.emit (events.js:185:7)
[1]     at endReadableNT (_stream_readable.js:926:12)
[1]     at _combinedTickCallback (internal/process/next_tick.js:74:11)
[1]     at process._tickCallback (internal/process/next_tick.js:98:9)
[1] ==> ROUTER ERROR:   Error: Not Found

screen shot 2016-10-24 at 13 23 13

sdgluck commented 7 years ago

In my experience this happens during server-side rendering when a requested resource cannot be found. Do your posts definitely have the right slugs as described in the README?

bmordan commented 7 years ago

screen shot 2016-10-24 at 14 38 08 screen shot 2016-10-24 at 14 38 19

My /src/config.js

  host: process.env.HOST || 'localhost',
  wordpress: process.env.WORDPRESS || 'http://localhost/local-wordpress',
  wpapi: process.env.WORDPRESS_API || 'http://localhost/local-wordpress/wp-json',
  port: process.env.PORT || 3000,

My Local wordpress running

screen shot 2016-10-24 at 14 42 09

sdgluck commented 7 years ago

OK cool 👍

Did you install WP somewhere other than at localhost/wordpress?

Try to hit http://<path_to_your_wp_installation>/wp-json/wp/v2/pages?slug=homepage in your browser.

sdgluck commented 7 years ago

@bmordan Any luck?