Forem: Http 500 Error when malformed github repo links inserted

Created on 21 Jul 2019  路  1Comment  路  Source: forem/forem

Describe the bug

When a user want to add a github repository link in a post. If their is a / at the beginning

To Reproduce

  • Goto post creation page
  • Paste {% github /thepracticaldev/dev.to %}
  • Try to save
  • You will receive a 500 HTTP error

Expected behavior

It should at least send a 400 error.
It should help user with a specific message.

Screenshots

Capture d鈥檈虂cran 2019-07-21 a虁 20 13 20
Desktop (please complete the following information):

  • OS: MacOS Mojave
  • Browser: Chrome
  • Version: 75
ready for dev bug

Most helpful comment

Agreed, let's send a better error message for this.

>All comments

Agreed, let's send a better error message for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Turnerj picture Turnerj  路  3Comments

UddeshJain picture UddeshJain  路  3Comments

msarit picture msarit  路  3Comments

michael-tharrington picture michael-tharrington  路  3Comments

vepo picture vepo  路  3Comments