djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 374 forks source link

ValueError: Unknown endpoint type: '7077' #206

Open markmark1 opened 6 years ago

markmark1 commented 6 years ago

twistd -r epoll web --class=pyapns.server.APNSServer --port=7077 Traceback (most recent call last): File "/usr/bin/twistd", line 11, in sys.exit(run()) File "/usr/lib64/python2.7/site-packages/twisted/scripts/twistd.py", line 29, in run app.run(runApp, ServerOptions) File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 662, in run runApp(config) File "/usr/lib64/python2.7/site-packages/twisted/scripts/twistd.py", line 25, in runApp _SomeApplicationRunner(config).run() File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 380, in run self.application = self.createOrGetApplication() File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 440, in createOrGetApplication ser = plg.makeService(self.config.subOptions) File "/usr/lib64/python2.7/site-packages/twisted/web/tap.py", line 245, in makeService strports.service(config['port'], site).setServiceParent(s) File "/usr/lib64/python2.7/site-packages/twisted/application/strports.py", line 40, in service endpoints.serverFromString(reactor, description), factory) File "/usr/lib64/python2.7/site-packages/twisted/internet/endpoints.py", line 1702, in serverFromString nameOrPlugin, args, kw = _parseServer(description, None) File "/usr/lib64/python2.7/site-packages/twisted/internet/endpoints.py", line 1620, in _parseServer getPlugins(IStreamServerEndpointStringParser), endpointType File "/usr/lib64/python2.7/site-packages/twisted/internet/endpoints.py", line 1636, in _matchPluginToPrefix raise ValueError("Unknown endpoint type: '%s'" % (endpointType,)) ValueError: Unknown endpoint type: '7077'

markmark1 commented 6 years ago

get this error please help

ks1322 commented 3 years ago

should work with --port="tcp:port=7077" taken from here https://github.com/robgjansen/onionperf/issues/26#issuecomment-306858519