[BUG] Waitlist route not working
Platform
Windows 11
Browser
Brave
Current Behavior
Currently, the api/waitlist route not working showing 500 error.
Screenshot:
Expected Behavior
The route mustwork if error occurs error message must be displayed on screen.
If assigned I can fix this issue. Thank you.
Recurrence Probability
Always
Steps To Reproduce
- Enter email in waitlist box
- Hit
Join waitlistbutton. - You'll notice no success or error message appears on screen.
Anything else?
No response
I got the same bug when trying to sign up for the waitlist.
- Enter email in waitlist box
- Hit Join waitlist button.
- You'll notice no success or error message appears on screen.
Here is a screenshot of the errors in the console. It seems the request url changes from https to http for some reason.
better-auth.Dw8i6Dcb.mjs:55 Mixed Content: The page at 'https://opencut.app/' was loaded over HTTPS, but requested an insecure resource 'http://opencut.app/api/auth/get-session'. This request has been blocked; the content must be served over HTTPS
/terms?_rsc=1ld0r:1 Failed to load resource: the server responded with a status of 404 ()
/privacy?_rsc=1ld0r:1 Failed to load resource: the server responded with a status of 404 ()
/api/waitlist:1 Failed to load resource: the server responded with a status of 500 ()
/api/waitlist:1 Failed to load resource: the server responded with a status of 500()
seems to be working fine now @RDjarbeng @DeadpoolX7
Cool then.
The problem persists. Here is a screen recording I made after refreshing the browser, so you can see that it's not accepting emails on the waitlist.
https://github.com/user-attachments/assets/679a67ca-f4b8-4f36-90d3-b4bad6ededb8
Same happens in an incognito window on Chrome browser
@RDjarbeng hey, the issue seems to be due to the better auth url that is being used, the waitlist endpoint seems to be working fine.
Created a PR for the better-auth issue here: #238
Okay, if I the errors in the console aren't due to the waitlist then I guess it's fine now.
Not sure why the page doesn't give the user a confirmation that they have signed up, as shown in the screen recording. Seems like a bug 🤔 unless that's the intended behavior
Can a success message be shown on successful sign-up to solve this?
@RDjarbeng No way that's an intended behavior.
I've read the code at api/waitlist/route.ts. On successful sign up it returns a json though they aren't using toast by choice.
You're right @DeadpoolX7
You'll notice no success or error message appears on screen
@nielchaudhary This was number 3 in the list. So I don't think this issue has been resolved