Skip to content

Project Submission Throws Uncaught Error #39729

Closed

Description

@ShaunSHamilton

Submitting an invalid URL for the Front End projects does not behave as expected:
image

https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-tribute-page

Expected:

  • No uncaught errors
  • Camper is notified about misshapen URL

Activity

  1. added
    help wanted
    platform: learn
    on Sep 29, 2020
  2. kostaslamo commented on Oct 1, 2020

    @kostaslamo
    Contributor

    I could take a look on that. Is there any other similar place on the ui where errors are caught and printed to the user?

    Edit: As far as i can see the same bug applies for all lessons under: https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/

  3. ShaunSHamilton commented on Oct 1, 2020

    @ShaunSHamilton
    MemberAuthor

    @kostaslamo If you take a look at what happens with the a clearly incorrect URL
    image

    This is moreso an issue with just a slightly incorrect URL which still manages to match the validation, but should not.

  4. kostaslamo commented on Oct 1, 2020

    @kostaslamo
    Contributor

    @kostaslamo If you take a look at what happens with the a clearly incorrect URL
    image

    This is moreso an issue with just a slightly incorrect URL which still manages to match the validation, but should not.

    Ok, so the fix in the bug should be this kind of validation under the lessons located here: https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/

  5. ShaunSHamilton commented on Oct 1, 2020

    @ShaunSHamilton
    MemberAuthor

    This bug has to do with the SolutionForm component, and the input validation for all projects. I have changed the title to reflect such.

  6. changed the title [-]Front End Project Submission Throws Uncaught Error[/-] [+]Project Submission Throws Uncaught Error[/+] on Oct 1, 2020
  7. kostaslamo commented on Oct 1, 2020

    @kostaslamo
    Contributor

    This bug has to do with the SolutionForm component, and the input validation for all projects. I have changed the title to reflect such.

    I will have a check for that and PR when ready.

  8. raisedadead commented on Oct 2, 2020

    @raisedadead
    Member

    We should probably do a validation message that shows a warning when users submit URLs which are of the commonly mistaken types for example: the editor links, run links etc,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedplatform: learn

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions