firefox-devtools / firefox-devtools/profiler

When bitly refuses to shorten the URL because it is too long, show an explanation

Open
#5,240 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 5h
Merged PRs (30d)
30

Description

[Example profile](https://profiler.firefox.com/public/5v57nw0b3x3ryha0cs6fkn9vbzkxdveqdve356r/flame-graph/?globalTrackOrder=0wDd&hiddenGlobalTracks=1wsuwz4z6wBoBqwC3C5wDaDc&hiddenLocalTracksByPid=4-0wCuD0wI2~180-0w2~536-0~780-0wb~876-0w9~948-0w9~976-0w3~628-0w8~1096-0wm~1132-0w3~1140-0w3~1176-0w6~1272-0wd~1340-0w7~1440-0wyo~1464-0w2~1488-0~1596-0w6~1628-0~1636-01~1708-0w4~1740-0w7~1796-0wi~1804-0wk~1940-0w4~2008-0wd~1032-0weg~1292-0w3~1776-01~1780-0wa~2128-0w3~2160-0wa~2168-0w5~2476-01~2484-0w3~2584-0~2604-0wx0~2632-0~2652-0w3~2772-0w4~2808-0w6~2896-0w3~2924-0wf~2968-0w2~2976-0w3~3040-01~2212-0w5~3084-0~3140-0wyf~3192-0~3220-01~3228-0w7~3372-0wd~3516-01~3700-0wa~3756-0w2~4200-0w4~4312-0wv~4352-0wb~4428-0w7~4456-0w2~4448-0w5~4500-0w5~4624-0w5~4816-01~4824-0w6~4832-0wc~4840-0wf~4848-0w3~4856-0w3~4868-0w3~4876-0w7~4884-0w5~4908-0~4932-0w3~4948-01~4960-0wy0~4968-0w7~4988-0wi~5260-0w5~5392-0w2~5536-0w4~5644-0wa~6048-0ws~6080-0w2~6096-0wv~6660-0w4~6860-0wb~6884-0wa~6976-0w3~6552-0wo~7184-0w2~7852-0w2~7452-01~8336-0wd~8384-0w3~8556-0w3~8608-02wm~8968-0w8~6420-0w9~7408-0wb~1156-0wb~1524-0w5~2680-0w8~4208-0w8~4688-0w2~5288-0wc~6936-0wAf~8928-0w7~10192-0w9~10232-0~10320-0w7~10748-0wm~10988-0w9~11108-0w2~11248-0wyd~11460-0we~11936-0w3~12244-0w4~12612-0w2~12932-0wh~13044-0w7~13184-0w6~13304-0wy9~9176-0w2~10684-0wk~12092-0wf~14028-0wd~6928-0w8~13792-0~11084-0w6~8720-0wa~5216-0w2~2688-0w2~10032-0w3~4304-0w3~9536-0~13060-0wq~6728-0~2500-0w2~11768-0wyd~11000-0wy1~5456-0w3~11340-0wq~2724-0wr~11136-0w3~9044-0we~13492-0w3~11608-0w6~11604-0wb~13864-0~10812-0~4100-0~1476-0w3~10916-0w3~312-0wp~6428-0w3~12760-0w2~13428-0w7~8620-0wd~5324-0wh~6112-0wh~11800-0wh~12316-0wxs~7280-0w6~8164-0wxg~9304-0wh~12844-0w8~4124-0wq~3964-0w2~8896-0wq~13328-0wo~12608-0w5~2152-0w6~4492-0w9~1720-0wo~16812-0wm~17332-0wm~14592-0wm~17084-0w68wh~11488-01~648-0wr~16676-01~9676-0w5~12412-0wh~5572-0w4~14892-0ws~9756-0wf~16432-0wy6~2060-0w7~2620-0wxd~15732-0wi~9388-0ws~15916-0wq~7928-0wq~4556-0wq~8376-0wq~10460-0wq~16540-0wh~3484-0wh~2120-0wh~16648-0wh~1684-0wi~15652-0wh~16376-0wh~14508-0wh~2148-0wh~11552-0wh~16152-0wh~14440-0wj~15548-0wi~1980-0w6~15372-0wr~12204-0wf~10580-0w2~14296-01~16512-01~13296-01~18084-0w3~17464-0w2~16160-0wc~6780-0w2~17992-0w4~17964-0wb~17864-0w6~908-0w2~11156-0w3~15840-0w5~1508-0w7~17904-0wr~12892-0wn~17640-0w5&range=17235m6850&thread=zR7&v=10)

Clicking Permalink on this profile gives you the full URL. Bitly responds with a 500 saying `The provided value exceeds the maximum allowed length. (INVALID_ARG_LONG_URL)`

It would be nice to show some kind of feedback (not sure how) which says that the URL is too long to be shortened.

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-832)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.