question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `removePort` option

See original GitHub issue

In the Docs, you have an example that has a port on a url and then when you wrap the url with “normalizeUrl” the port is no longer included: image

When I run this same example locally, the Port :80/ is still included - which is different behavior from what your documentation example above shows: image

How would I remove the :80/ port portion of a url with your package ?

I am pretty sure there is a bug because when I did another test the behavior is not consistent. As you can see in the image below, the results are not consistent just by changing a url from having http too https and also I see that just changing the actual number for the port in the url makes the behavior different too: image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
loynoircommented, Sep 1, 2022

@ianizaguirre

I think removePort should be rename to unsafeRemovePort, or current naming style forceRemovePort.

Because https://example.com:80 and https://example.com is NOT SAME AT ALL, they MAY just happen to LOOK same in specific cases.

This suggestion may prevent confusion with the safe remove port, like remove :80 from http and remove :443 from https.

0reactions
ianizaguirrecommented, Sep 6, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove access to a port using firewall on Centos7?
Solution: Do not forget the --runtime-to-permanent $ firewall-cmd --zone=public --remove-port=10050/tcp $ firewall-cmd ...
Read more >
Add or remove ports from a broadcast domain
Display the ports that are currently assigned or unassigned to a broadcast domain by using the network port show command. · Add or...
Read more >
Firewalld Add New Port, List All Ports, Remove Port with ...
Firewalld Add New Port, List All Ports, Remove Port with firewall-cmd command in Oracle Linux 7.
Read more >
How to remove port number from URL when running npm start?
I believe the solution is to drop the https:// at the start of your host option, and change the port to 80. However,...
Read more >
can't remove port-security maximum - Cisco Community
I've done those steps, no change. And it didn't do that to the couple thousand other similar ports with a phone/pc (ie two...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found