Making register form

@Hyperbytes - Hi Brain, I’m up to Video 9 - Finalising the Registration Form.

When I preview in localhost, nothing happens when I click Register. I’m not getting any output/errors when looking at the console, so I’m at a loss what to show in order to help debug the issue.

I’ve followed everything exactly. Any ideas where to start to try and find out what’s gone wrong?

Tx

Check your button is set to type submit

1 Like

@Hyperbytes Thanks! :slight_smile:

Thats moved it on - now its thrown up an internal server error…
Does this output make any sense?

  1. Request URL:

http://localhost:3000/api/registration/register

  1. Request Method:

POST

  1. Status Code:

500 Internal Server Error

  1. Remote Address:
  1. Referrer Policy:

strict-origin-when-cross-origin

  1. Response HeadersView source

  2. Connection:

keep-alive

  1. Content-Length:

92

  1. Content-Type:

application/json; charset=utf-8

  1. Date:

Sat, 01 Oct 2022 17:01:16 GMT

  1. ETag:

W/“5c-r2TvFwdbIykxOOIZAFsItARY1ko”

  1. Keep-Alive:

timeout=5

  1. Vary:

Accept-Encoding

  1. Request HeadersView source

  2. accept:

application/json

  1. Accept-Encoding:

gzip, deflate, br

  1. Accept-Language:

en-GB,en-US;q=0.9,en;q=0.8

  1. Connection:

keep-alive

  1. Content-Length:

570

  1. Content-Type:

multipart/form-data; boundary=----WebKitFormBoundaryknhjgKEziYSKIWEq

  1. Host:

localhost:3000

  1. Origin:

http://localhost:3000

  1. Referer:

http://localhost:3000/register

  1. sec-ch-ua:

“Google Chrome”;v=“105”, “Not)A;Brand”;v=“8”, “Chromium”;v=“105”

  1. sec-ch-ua-mobile:

?0

  1. sec-ch-ua-platform:

“macOS”

  1. Sec-Fetch-Dest:

empty

  1. Sec-Fetch-Mode:

cors

  1. Sec-Fetch-Site:

same-origin

  1. User-Agent:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Follow this post to get accurate debug information

@Hyperbytes

I can see this error - 2022-10-01T19:09:38.826Z server-connect:server Got error? [Error: select * from user where email = ‘mthomas_online@icloud.com’ limit 1 - SQLITE_ERROR: no such table: user] {
errno: 1,
code: ‘SQLITE_ERROR’

I’ve gone through it all again and still at a loss :tired_face:

Help!

The error message suggests the table does not exist. What is your database structure and what is the query setup?

The message indicates the user table is not found

@Hyperbytes

Well spotted Ben, undeployed database changes, could well be cause of issue