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.

using bad --relay-url= gives an unhelpful traceback

See original GitHub issue

After installing wormhole (from pypi release or github’s master), when I follow the example commands I get an exception:

Unhandled Error
Traceback (most recent call last):
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/task.py", line 936, in react
    _reactor.run()
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/base.py", line 1243, in run
    self.mainLoop()
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/base.py", line 1255, in mainLoop
    self.doIteration(t)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 235, in doPoll
    log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/python/log.py", line 103, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/python/log.py", line 86, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 610, in _doReadOrWrite
    self._disconnectSelectable(selectable, why, inRead)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 255, in _disconnectSelectable
    selectable.connectionLost(f)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/tcp.py", line 478, in connectionLost
    self._commonConnection.connectionLost(self, reason)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/tcp.py", line 292, in connectionLost
    protocol.connectionLost(reason)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/internet/endpoints.py", line 139, in connectionLost
    return self._wrappedProtocol.connectionLost(reason)
  File "/home/fabien/env/lib/python2.7/site-packages/twisted/application/internet.py", line 436, in connectionLost
    return self._protocol.connectionLost(reason)
  File "/home/fabien/env/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 128, in connectionLost
    self._connectionLost(reason)
  File "/home/fabien/env/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 3357, in _connectionLost
    WebSocketProtocol._connectionLost(self, reason)
  File "/home/fabien/env/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1096, in _connectionLost
    self._onClose(self.wasClean, WebSocketProtocol.CLOSE_STATUS_CODE_ABNORMAL_CLOSE, "connection was closed uncleanly (%s)" % self.wasNotCleanReason)
  File "/home/fabien/env/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 171, in _onClose
    self.onClose(wasClean, code, reason)
  File "/home/fabien/env/lib/python2.7/site-packages/wormhole/_rendezvous.py", line 40, in onClose
    self._RC.ws_close(wasClean, code, reason)
  File "/home/fabien/env/lib/python2.7/site-packages/wormhole/_rendezvous.py", line 205, in ws_close
    self._N.lost()
  File "/home/fabien/env/lib/python2.7/site-packages/automat/_methodical.py", line 129, in lost
    (outputs, outTracer) = transitioner.transition(self)
  File "/home/fabien/env/lib/python2.7/site-packages/automat/_core.py", line 158, in transition
    inputSymbol)
  File "/home/fabien/env/lib/python2.7/site-packages/automat/_core.py", line 137, in outputForInput
    raise NoTransition(state=inState, symbol=inputSymbol)
automat._core.NoTransition: no transition for MethodicalInput(method=<function lost at 0x7fd76faf7e60>) in MethodicalState(method=<function S0A at 0x7fd76faf77d0>)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
fdev31commented, Jun 27, 2017

With latest version:

ERROR: We had a problem connecting to the relay server:
(relay URL was ws://relay.magic-wormhole.io:4000/v1)
connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)

I can netcat, but http GET half working:

http: error: ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer')) while doing GET request to URL: http://relay.magic-wormhole.io:4000/

I’m using autobahn[twisted]>=0.14.1.

But, still good news: using localhost server it works! A configuration file to set default server would be awesome 😉

0reactions
warnercommented, Feb 16, 2018

@merlinengine I was upgrading the server about 6-9 hours ago, so it’s possible you ran into the 5 minute when the server was down. If you try again now, do you see any problems?

Read more comments on GitHub >

github_iconTop Results From Across the Web

using bad --relay-url= gives an unhelpful traceback · Issue #180
After installing wormhole (from pypi release or github's master), when I follow the example commands I get an exception: Unhandled Error ...
Read more >
Event-Driven and Asynchronous Programming with Python
every occurrence of a trademarked name, logo, or image we use the names, logos, ... Each operating system family provides its own, more...
Read more >
Definitions - ITU
Security of access to UPT service is required in order to protect the user's resources or information from unauthorized persons (fraudulent use), ...
Read more >
iu_wkbk_2002-03.pdf - Kabay
The current taxonomy is listed here and is used throughout this edition ... In addition with the hotel-guest information, this could give an ......
Read more >
re.search Example - Program Talk
0 err = err.splitlines() assert b"Wrong unpacker used" in err[0] assert ... self.detailedresults += traceback.format_exc() self.logger.log(LogPriority.
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