question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Native application tried to send a message of 1634038339 bytes, which exceeds the limit of 1048576 bytes

See original GitHub issue

Overview

I’m getting this error in the debug output of the Firefox plug-in itself and a couple of related errors, but I think they are caused by the original error, but I’ll include them anyway. I have gone through the troubleshooting section in the README.md and everything there seems to be correct on my system.

Errors

  • Firefox plugin: Disconnected from native app: Error: Native application tried to send a message of 1634038339 bytes, which exceeds the limit of 1048576 bytes.
  • Firefox console: Error: Attempt to postMessage on disconnected port
  • pywalfox.py: Traceback (most recent call last): File "./pywalfox.py", line 21, in <module> client = uds.UDSClient() File "/mnt/data/Downloads/Pywalfox/daemon/uds.py", line 43, in __init__ self.s.connect(HOST) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 111] Connection refused
  • If run with python3: Traceback (most recent call last): File "pywalfox.py", line 21, in <module> client = uds.UDSClient() File "/mnt/data/Downloads/Pywalfox/daemon/uds.py", line 43, in __init__ self.s.connect(HOST) ConnectionRefusedError: [Errno 111] Connection refused

Specs

Firefox 74 OS: Pop!_OS 19.10 python --version: 2.7.17 python3 --version: 3.7.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:30 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
Frewacomcommented, Mar 24, 2020

I believe I have fixed this issue. Apparently, the issue was a print() used for debugging when setting up the UNIX-socket server.

4 hours well spent…

3reactions
wts42commented, Mar 24, 2020

Quick and dirty workaround if you have python3 on your machine: Change the shebang (first line of script Pywalfox/daemon/pywalfox.py) from #!/usr/bin/env python to #!/usr/bin/env python3

Oh almost forgot, thanks Frewacom for your great work and thanks for posting it on unixporn.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Native application tried to send a message of ... - GitHub
Error : Native application tried to send a message of 1634038339 bytes, which exceeds the limit of 1048576 bytes #8.
Read more >
Native extension exceed message limit - Mozilla Discourse
Disconnected due to an error: Native application tried to send a message of 1394626127 bytes, which exceeds the limit of 1048576 bytes. NodeJS ......
Read more >
java - Native Messaging host tried sending a message that is ...
When an error occurs. Native Messaging host tried sending a message that is 977472013 bytes long. First of all, try to start the...
Read more >
Having trouble sending native message | Topicbox
Native application tried to send a message of 1701596997 bytes, which exceeds the limit of 1048576 bytes. Any ideas of what I am...
Read more >
Native Messaging - Chrome Developers
How to exchange messages with native applications from your Chrome App. ... and is preceded with 32-bit message length in native byte order....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found