App: Dev: Web - Console error `Error parsing URLs: TypeError: Failed to construct 'URL': Invalid URL`

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to any chat and enter the message -77.com
  2. Edit the message and change the text to: -[77.com](https://-77.com)
  3. Notice that the console error props up.

Expected Result:

Should not show any console error

Actual Result:

Shows console error - Url.js:46 Error parsing URLs: TypeError: Failed to construct ‘URL’: Invalid URL

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.62.0 Reproducible in staging?: no Reproducible in production?: no If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation

Screenshot 2023-11-14 at 5 46 41 PM

Expensify/Expensify Issue URL: Issue reported by: ~@narzullome~ @Natnael-Guchima reported earlier Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010fdcd111103dab09
  • Upwork Job ID: 1701909826193559552
  • Last Price Increase: 2023-09-13
Issue OwnerCurrent Issue Owner: @MariaHCD

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 44 (32 by maintainers)

Most upvoted comments

Hey Guys, I have reported an issue with similar root cause earlier here. I reported the similar issue on Aug 23, and this issue was reported on August 30.

I was assigned to the other issue, @Natnael-Guchima is correct, I’ve updated the OP to reflect image vs image

Closing other issue since this one has more progress on it.

Great! I believe we can now move forward with the payment for reporting, @bfitzexpensify

This should be fixed once BE returns the full URL.

Okay, reproduced the console error when I created a public room in dev:

Screenshot 2023-09-13 at 6 42 44 PM

let’s fix it!

Will take a look and see if I can reproduce this on dev tomorrow