Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome.webRequest events throw when attaching listener :( #213

Open
dylanPowers opened this issue Feb 25, 2015 · 1 comment
Open

chrome.webRequest events throw when attaching listener :( #213

dylanPowers opened this issue Feb 25, 2015 · 1 comment

Comments

@dylanPowers
Copy link

It appears that the proper arguments aren't being passed. In the documentation it's mentioned that a "filter" is required that at the very least must have a urls property defined.

This is the exception I get when I try to run onBeforeRequest.listen(data => print(data))

Exception: Uncaught Error: Error: Parameter 1 (filter) is required.
Stack Trace:
#0      JsObject._callMethod (dart:js:235)
#1      JsObject.callMethod (dart:js:225)
#2      _ensureHandlerAdded (package:chrome/src/common.dart:176:23)
#3      _runGuarded (dart:async/stream_controller.dart:669)
#4      _BroadcastStreamController._subscribe (dart:async/broadcast_stream_controller.dart:199)
#5      _ControllerStream._createSubscription (dart:async/stream_controller.dart:687)
#6      _StreamImpl.listen (dart:async/stream_impl.dart:474)
#7      main (chrome-extension://obaakcmlgkhenfocgiedogghmbencagi/main.dart:6:36)
@dylanPowers dylanPowers changed the title chrome.webRequest exceptions when listening on events :( chrome.webRequest throws when listening on events :( Feb 25, 2015
@dylanPowers dylanPowers changed the title chrome.webRequest throws when listening on events :( chrome.webRequest events throw when attaching listener :( Feb 25, 2015
@apaulus
Copy link

apaulus commented Feb 26, 2015

I'd like to bump this even though it looks like a duplicate of #168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants