sandiegojs / sdjs-speaker-pipeline

Web application to apply a workflow for organizing speakers for events.
MIT License
2 stars 29 forks source link

Unable to sign up on Speaker Registration Form. #110

Closed ch3rr17 closed 5 years ago

ch3rr17 commented 5 years ago

Describe the bug Unable to sign up on Speaker Registration Form.

To Reproduce Steps to reproduce the behavior:

  1. Open Developer Tools
  2. Go to 'http://localhost:3000'
  3. Click on 'SignUp'
  4. Fill Out Form
  5. Post Error in console log

Expected behavior Successful SignUp

Screenshots If applicable, add screenshots to help explain your problem.

1) take a screenshot

System Info (please complete the following information):

Additional context Post Error in console log upon form submission. Although object seems to be passing through

Screenshot: https://screencast.com/t/NyNl5KLT

BladeSe7en commented 5 years ago

Part of this problem is not having a db connected to the project. Once you set up a local db, if you sign up as a speaker, it will successfully add the speaker request to the db and it will show up in the admin dash under meetups. However, the talkSubmit action found in src/components/SignUp/SignUpActions.js will still throw two errors xhr.js:178 POST http://localhost:3000/api/talks/talkSubmit net::ERR_EMPTY_RESPONSE createError.js:16 Uncaught (in promise) Error: Network Error at e.exports (createError.js:16) at XMLHttpRequest.m.onerror (xhr.js:87) and the TALK_SUBMIT action will return TALK_SUBMIT_REJECTED and not TALK_SUBMIT_FULFILLED preventing the page from clearing out the input fields and redirecting the user to the ThankYou.jsx component. Also because the names of some of the env variables were changed some of the process.env are now incorrect. Ill be pushing up a pull request once I have it all sorted.