Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registration Submission on app.openfn.org shows internal server error in browser #686

Closed
jayesse opened this issue Mar 10, 2023 · 2 comments · Fixed by #739
Closed

Registration Submission on app.openfn.org shows internal server error in browser #686

jayesse opened this issue Mar 10, 2023 · 2 comments · Fixed by #739
Assignees
Labels
bug Newly identified bug

Comments

@jayesse
Copy link

jayesse commented Mar 10, 2023

Describe the bug
I attempted to register on app.openfn.org and upon filling and submitting the registration form, the browser displayed a blank page with an "internal server error" message. (See screenshot below).
Note: The registration was however successful, as I duly received an email titled "Confirmation Instructions". I clicked the link in the email, confirmed my account and then logged into Lightning successfully.

UPDATE:
When a user registers with two first names (ie there's a space), the app throws a format error for the project creation
errors: [name: {"has invalid format", [validation: :format]}], data: #Lightning.Projects.Project<>, valid?: false>}

To Reproduce Steps to reproduce the behavior:

  1. Go to app.openfn.org
  2. Click on the Register button on the bottom right of the page
  3. Fill in your First name and include a space in it, Last name, Email and Password
  4. Click on the big Register button to submit your details
  5. Observe the error on your screen.

I used google chrome version 110.0.5481.178 (Official Build) (64-bit) (cohort: Stable) on a Windows PC

Expected behavior
Following the steps above should not generate an "internal server error" message.

Screenshots If applicable, add screenshots to help explain your problem.
Error Message:
image

Confirmatory email received afterwards:
image

Additional context Add any other context about the problem here.

See stack trace below

no match of right hand side value: {:error, #Ecto.Changeset<action: :insert, changes: %{name: "elias waly-demo", project_users: [#Ecto.Changeset<action: :insert, changes: %{role: :admin, user_id: "3acf4379-8df4-4c65-8264-1bc13a2489c8"}, errors: [], data: #Lightning.Projects.ProjectUser<>, valid?: true>]}, errors: [name: {"has invalid format", [validation: :format]}], data: #Lightning.Projects.Project<>, valid?: false>}
@jayesse jayesse added the bug Newly identified bug label Mar 10, 2023
@jayesse jayesse changed the title Registration Submission shows internal server error in browser Registration Submission on app.openfn.org shows internal server error in browser Mar 10, 2023
@taylordowns2000 taylordowns2000 added this to the Suspicious Salmon milestone Mar 10, 2023
@amberrignell
Copy link
Contributor

@jayesse I wasn't able to reproduce (see recording below). Could you give it another go and close the issue if this is no longer a problem?

https://images.zenhubusercontent.com/454419290/4b1f4916-29ec-457b-9c77-8383a7d1ef6e/screen_recording_2023_03_22_at_14_28_36.mov

@taylordowns2000
Copy link
Member

@amberrignell confirmed that this is no longer an issue. closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Newly identified bug
Projects
None yet
4 participants