OpenCut icon indicating copy to clipboard operation
OpenCut copied to clipboard

[BUG] Waitlist route not working

Open DeadpoolX7 opened this issue 1 year ago • 8 comments

Platform

Windows 11

Browser

Brave

Current Behavior

Currently, the api/waitlist route not working showing 500 error.

Screenshot:

Image

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

  1. Enter email in waitlist box
  2. Hit Join waitlist button.
  3. You'll notice no success or error message appears on screen.

Anything else?

No response

DeadpoolX7 avatar Jul 13 '25 07:07 DeadpoolX7

I got the same bug when trying to sign up for the waitlist.

  1. Enter email in waitlist box
  2. Hit Join waitlist button.
  3. 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. Image

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()

RDjarbeng avatar Jul 13 '25 07:07 RDjarbeng

Image

seems to be working fine now @RDjarbeng @DeadpoolX7

nielchaudhary avatar Jul 13 '25 14:07 nielchaudhary

Cool then.

DeadpoolX7 avatar Jul 13 '25 15:07 DeadpoolX7

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 avatar Jul 13 '25 17:07 RDjarbeng

@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

nielchaudhary avatar Jul 13 '25 21:07 nielchaudhary

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 avatar Jul 14 '25 09:07 RDjarbeng

@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.

DeadpoolX7 avatar Jul 14 '25 11:07 DeadpoolX7

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

RDjarbeng avatar Jul 14 '25 16:07 RDjarbeng