mozilla / mozilla/bugbot

Fail to shorten extremely long URLs

Open
#1,402 1 comment 0 reactions 1 assignee View on GitHub

@suhaibmujahid is already working on this.

Since Apr 12, 2022.

Dominant language
Python
Stars
68
Forks
92
Avg merge
2d 2h
Merged PRs (30d)
16

Description

The error leads to failing the tool run.

2022-04-11 12:00:15,760 - ERROR - Tool to_triage
Traceback (most recent call last):
  File "/home/rm_bot/relman-auto-nag/auto_nag/bzcleaner.py", line 651, in run
    self.send_email(date=date)
  File "/home/rm_bot/relman-auto-nag/auto_nag/bzcleaner.py", line 584, in send_email
    title, body = self.get_email(date)
  File "/home/rm_bot/relman-auto-nag/auto_nag/bzcleaner.py", line 563, in get_email
    message=message, query_url=utils.shorten_long_bz_url(self.query_url)
  File "/home/rm_bot/relman-auto-nag/auto_nag/utils.py", line 189, in shorten_long_bz_url
    BugzillaShorten(url, url_data=data, url_handler=url_handler).wait()
  File "/home/rm_bot/relman-auto-nag/venv/lib/python3.7/site-packages/libmozdata/connection.py", line 134, in wait
    r.result()
  File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/rm_bot/relman-auto-nag/venv/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/rm_bot/relman-auto-nag/venv/lib/python3.7/site-packages/requests/sessions.py", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/home/rm_bot/relman-auto-nag/venv/lib/python3.7/site-packages/requests/hooks.py", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/home/rm_bot/relman-auto-nag/venv/lib/python3.7/site-packages/libmozdata/connection.py", line 123, in cb
    res.raise_for_status()
  File "/home/rm_bot/relman-auto-nag/venv/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://bugzilla.mozilla.org/rest/bitly/shorten?url=https%3A%2F%2Fbugzilla.mozilla.org%2Fbuglist.cgi%3Finclude_fields%3Dtriage_owner%26include_fields%3Dtype%26include_fields%3Did%26include_fields%3Dsummary%26include_fields%3Dgroups%26include_fields%3Dproduct%26include_fields%3Dcomponent%26product%3DCore%26product%3DDevTools%26product%3DExternal%2BSoftware%2BAffecting%2BFirefox%26product%3DFenix%26product%3DFirefox%26product%3DFirefox%2Bfor%2BiOS%26product%3DFirefox%2BBuild%2BSystem%26product%3DGeckoView%26product%3DJSS%26product%3DNSPR%26product%3DNSS%26product%3DRemote%2BProtocol%26product%3DTesting%26product%3DToolkit%26product%3DWeb%2BCompatibility%26product%3DWebExtensions%26component%3DStorage%253A%2BlocalStorage%2B%2526%2BsessionStorage%26component%3DDOM%253A%2BFile%26component%3DDOM%253A%2BUI%2BEvents%2B%2526%2BFocus%2BHandling%26component%3DDOM%253A%2BpostMessage%26component%3DDOM%253A%2BNavigation%26component%3DDOM%253A%2BWeb%2BPayments%26component%3DDOM%253A%2BWindow%2Band%2BLocation%26component%3DDOM%253A%2BService%2BWorkers%26component%3DAudio%252FVideo%253A%2Bcubeb%26component%3DDOM%253A%2BCopy%2B%2526%2BPaste%2Band%2BDrag%2B%2526%2BDrop%26component%3DInspector%253A%2BChanges%26component%3DAudio%252FVideo%253A%2BRecording%26component%3DDOM%253A%2BWorkers%26component%3DDOM%253A%2BSelection%26component%3DStorage%253A%2BQuota%2BManager%26component%3DInspector%26component%3DDMD%26component%3DXPConnect%26component%3DGeneral%26component%3DDOM%253A%2BSerializers%26component%3DInspector%253A%2BLayout%26component%3DInspector%253A%2BRules%26component%3DDOM%253A%2BForms%26component%3DDOM%253A%2BHTML%2BParser%26component%3DSpelling%2Bchecker%26component%3DXML%26component%3DStorage%253A%2BIndexedDB%26component%3DDOM%253A%2BEditor%26component%3Dabout%253Amemory%26component%3DDOM%253A%2BEvents%26component%3DDOM%253A%2BContent%2BProcesses%26component%3Dabout%253Adebugging%26component%3DDOM%253A%2BGeolocation%26component%3DXSLT%26component%3DWeb%2BAudio%26component%3DDOM%253A%2BCore%2B%2526%2BHTML%26component%3DDOM%253A%2BBindings%2B%2528WebIDL%2529%26component%3DAudio%252FVideo%253A%2BMediaStreamGraph%26component%3DDOM%253A%2BPush%2BNotifications%26component%3DStorage%253A%2BStorageManager%26component%3DStorage%253A%2BCache%2BAPI%26component%3DStyle%2BEditor%26keywords%3Dintermittent-failure%26keywords_type%3Dnowords%26email2%3Dwptsync%2540mozilla.bugs%26emailreporter2%3D1%26emailtype2%3Dnotequals%26resolution%3D---%26f1%3Dbug_type%26o1%3Dequals%26v1%3Ddefect%26f2%3Dflagtypes.name%26o2%3Dnotsubstring%26v2%3Dneedinfo%253F%26f3%3Dbug_severity%26o3%3Danyexact%26v3%3D--%252C%2Bn%252Fa%26f4%3Dstatus_whiteboard%26o4%3Dnotsubstring%26v4%3D%255Bno-nag%255D%26f5%3Dkeywords%26o5%3Dnowords%26v5%3Dmeta%26f6%3Dcreation_ts%26o6%3Dgreaterthan%26v6%3D-1y

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.