Comments (3)
FWIW, we moved to api key but this is still a private information.
from bugbot.
@sylvestre: I have started working on it. A sample error while parsing invalid api key:
Traceback (most recent call last):
File "test.py", line 21, in
buglist = bmo.get_bug_list(options)
File "/home/bztools/bugzilla/agents.py", line 34, in get_bug_list
print "(", BugSearch.get(url).bugs
File "/usr/local/lib/python2.7/dist-packages/remoteobjects/fields.py", line 141, in get
value = obj.api_data[self.api_name]
File "/usr/local/lib/python2.7/dist-packages/remoteobjects/promise.py", line 136, in _get_api_data
self.deliver()
File "/usr/local/lib/python2.7/dist-packages/remoteobjects/promise.py", line 216, in deliver
self.update_from_response(request['uri'], response, content)
File "/usr/local/lib/python2.7/dist-packages/remoteobjects/promise.py", line 232, in update_from_response
super(PromiseObject, self).update_from_response(url, response, content)
File "/usr/local/lib/python2.7/dist-packages/remoteobjects/http.py", line 263, in update_from_response
self.raise_for_response(url, response, content)
File "/usr/local/lib/python2.7/dist-packages/remoteobjects/http.py", line 214, in raise_for_response
% (response.status, response.reason, classname, url))
remoteobjects.http.RequestError: 400 Bad Request requesting BugSearch https://bugzilla.mozilla.org/bzapi/bug/?&changed_before=2010-12-26&product=Core,Firefox&changed_field=status&changed_after=2010-12-24&include_fields=_default,attachments&changed_field_to=RESOLVED&api_key=**********&resolution=FIXED
Now we are not handling exceptions properly. Thats why we are getting something like this.
2 ways we can avoid logging and screen output:
- Mask the api key(replace with ****) similar to:
Remoteobjects.http.RequestError: 400 Bad Request requesting BugSearch https://bugzilla.mozilla.org/bzapi/bug/?&changed_before=2010-12-26&product=Core,Firefox&changed_field=status&changed_after=2010-12-24&include_fields=_default,attachments&changed_field_to=RESOLVED&api_key=**********&resolution=FIXED
- We don't need to give url Just print the error similar to:
"400 Bad Request requesting BugSearch "
let me know which one so that I can do the changes.
from bugbot.
Fixed by #35
from bugbot.
Related Issues (20)
- Failing to retrieve the `variants.yml` file HOT 1
- Automatically ask for crash related information when people report crashes
- Automatically ask for performance information for reports where the initial comment says Firefox hangs or similar HOT 1
- [file_crash_bug] KeyError: 'cf_status_firefox125' HOT 2
- Use the new Fenix components model to move bugs out of Fenix:General
- Bot will repeatedly set trunk as affected if we fix an issue via a pref-flip and represent that as `firefoxN: disabled` HOT 8
- Add a comment on closed bugs with pending needinfos HOT 2
- [no_assignee] 502 Server Error: Bad Gateway for url: https://bugzilla.mozilla.org/rest/bug/[bug_id]/attachment
- Planned changes to bugmon output
- [regression_set_status_flags] KeyError: 'cf_status_firefox127'
- Allow BugBot to file and update bugs based on the hang stats data from BHR
- Don't nag triage owners about mismatched severity and accessibility severity for no-plan-to-ship bugs HOT 1
- [component] Store thresholds as variables instead of calling `self.get_config()`
- Automatically add `dev-doc-needed` flag HOT 3
- Nag people about requesting a release note
- [component] KeyError: 'class'
- Consider not asking user for perf information where "Performance Impact: --- → none" HOT 1
- [file_crash_bug] Bad Request for url: https://clouseau.moz.tools/api/reports?signatures
- Generate a report of top X bugs that might be moved out of *::General components HOT 1
- don't close bugs for intermittents if there are classifications for it in the current week (= no bugbot comment yet)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugbot.