Comments (8)
We should get a static object first and then loop over it, instead of looping over the dict.
from mobster.
I just tested and this code change most likely fixes the issue:
diff --git a/src/linkedin/mobster/webkitcommunicator.py b/src/linkedin/mobster/webkitcommunicator.py index b3abc40..543eb55 100644 --- a/src/linkedin/mobster/webkitcommunicator.py +++ b/src/linkedin/mobster/webkitcommunicator.py @@ -58,7 +58,8 @@ class RemoteWebKitCommunicator(WebSocketClient): id = response['id'] self._response_callbacks[id](response) elif 'method' in response: - for callback in self._domain_callbacks[response['method'].split('.')[0]].itervalues(): + callbacks = self._domain_callbacks[response['method'].split('.')[0]].values() + for callback in callbacks: callback(response) else: log.warn('Unrecognized message: {0}'.format(pformat(response)))
from mobster.
Is there any correlation between the webpage currently being navigated to and when this error occurs?
from mobster.
Haven't tested for other pages yet, only linkedin.
from mobster.
Oh I meant does the error normally occur on one particular page in the flow? I can see how this problem could occur, though I'm surprised it actually does.
If that code fixes the problem, please open a pull request (and feel free to merge it yourself).
from mobster.
Look at the other issue I opened (#19), that may solve this. Lets hold off until we have resolved that issue.
from mobster.
Confirming that fixing #19 does not fix this issue.
from mobster.
Ritesh can you please close this issue after you test it on your desktop
thanks
Hari
from mobster.
Related Issues (18)
- Add handling of desktop Chrome user agent strings
- Add testing of core functionality
- Fails to terminate on first run in new browser instance
- Need an easy way to add support for new remote debugging commands
- Add Total Page Weight to mobster report HOT 1
- Add more flow samples
- Re-Organize Page Metrics Table HOT 4
- Add Total Page Weight Metrics to the mobster report HOT 1
- Allow port number to be configurable HOT 1
- Missing 'timing' information in some messages received from webkit HOT 3
- Excessive WARNING Messages regarding HeapSize HOT 2
- Latest build breaks waterfall links in the report HOT 1
- Mobster is incompatible with Chromium 24 HOT 1
- onLoad times are incorrect sometimes HOT 11
- Reduce timeout? HOT 1
- Mobster should be compatible with iOS HOT 1
- add http status codes to waterfall
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 mobster.