Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Error After Following README Instructions #30

Closed
astorm opened this issue Sep 24, 2020 · 1 comment
Closed

Error After Following README Instructions #30

astorm opened this issue Sep 24, 2020 · 1 comment

Comments

@astorm
Copy link

astorm commented Sep 24, 2020

I followed the instructions in the README and was able to sucsesfully get the application and FaunaDB talking to one another. i.e. I was able to run

npm run bootstrap 

and the collections/tables were created in my FaunaDB. However, if I run npm start and navigate to http://localhost:3000/, I receive a javascript error in the console

Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

If I attempt to add a todo I get an XHR error in my console

POSThttp://localhost:3000/.netlify/functions/todos-create [HTTP/1.1 404 Not Found 4ms]
An API error occurred SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

I'm unsure if this is bitrot, or if there's some subtle step I'm missing. If someone can confirm this project works as is (or tell me the additional steps needed to get it running) that would go a long way towards getting things up and running myself.

Screen Shot 2020-09-24 at 2 14 11 PM

@astorm
Copy link
Author

astorm commented Sep 24, 2020

Strange -- I could also access the application on

http://localhost:8888/

When accessed on port 8888 the above javascript errors were not a problem, and I could save the TODOs. I presume this has something to do with the "run Netlify functions locally" functionality -- but the discrepancies between the quick start and the tutorial still have me  ¯_(ツ)_/¯. Closing out though -- hopefully this helps someone in the future.

@astorm astorm closed this as completed Sep 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant