CAB_uk
October 1, 2022, 3:54pm
1
@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
CAB_uk
October 1, 2022, 5:04pm
3
@Hyperbytes Thanks!
Thats moved it on - now its thrown up an internal server error…
Does this output make any sense?
Request URL:
http://localhost:3000/api/registration/register
Request Method:
POST
Status Code:
500 Internal Server Error
Remote Address:
Referrer Policy:
strict-origin-when-cross-origin
Response HeadersView source
Connection:
keep-alive
Content-Length:
92
Content-Type:
application/json; charset=utf-8
Date:
Sat, 01 Oct 2022 17:01:16 GMT
ETag:
W/“5c-r2TvFwdbIykxOOIZAFsItARY1ko”
Keep-Alive:
timeout=5
Vary:
Accept-Encoding
Request HeadersView source
accept:
application/json
Accept-Encoding:
gzip, deflate, br
Accept-Language:
en-GB,en-US;q=0.9,en;q=0.8
Connection:
keep-alive
Content-Length:
570
Content-Type:
multipart/form-data; boundary=----WebKitFormBoundaryknhjgKEziYSKIWEq
Host:
localhost:3000
Origin:
http://localhost:3000
Referer:
http://localhost:3000/register
sec-ch-ua:
“Google Chrome”;v=“105”, “Not)A;Brand”;v=“8”, “Chromium”;v=“105”
sec-ch-ua-mobile:
?0
sec-ch-ua-platform:
“macOS”
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-origin
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
You can easily debug issues related to server-side processing such as - form not sending email, record not inserting or updating, query not showing data etc.
The first thing you need to do is to open the server connect settings. They are located in the Workflows Panel > Server Actions:
[Screenshot 2021-09-27 at 10.02.35]
And enable the Debug Mode:
[Screenshot 2021-09-27 at 10.03.08]
Click Save:
[Screenshot 2021-09-27 at 10.03.26]
In your browser, open the Developer tools. If you don’t k…
CAB_uk
October 1, 2022, 7:56pm
5
@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
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
Well spotted Ben, undeployed database changes, could well be cause of issue