Error when running test_program.py

Added by Joel 4 months ago

Hello
I get his error when I try to run test_program.py

@Checking NEXT API status...
<< HTTP request GET /next/2/ {
"message": "",
"system_running": true,
"timestamp": 1586777233497,
"valid_version": true
}
Logging in NEXT API...
<< HTTP request POST /next/2/login {
"country": "SE",
"environment": "exttest",
"expires_in": 300,
"private_feed": {
"encrypted": true,
"hostname": "priv.api.test.nordnet.se",
"port": 443
},
"public_feed": {
"encrypted": true,
"hostname": "pub.api.test.nordnet.se",
"port": 443
},
"session_key": "d7bea8a8a97112c88d30a7c9ff0ae2f25763d931"
}

Connecting to feed pub.api.test.nordnet.se:443...

<< Sending cmd to feed: {'cmd': 'login', 'args': {'session_key': 'd7bea8a8a97112c88d30a7c9ff0ae2f25763d931', 'service': 'NEXTAPI'}}
<< Sending cmd to feed: {'cmd': 'subscribe', 'args': {'t': 'price', 'm': 11, 'i': '101'}}

Starting receiving from socket...

Process Process-1:
Traceback (most recent call last):
File "/Users/joelrietz/opt/anaconda3/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/Users/joelrietz/opt/anaconda3/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "./test_program.py", line 147, in receive_message_from_socket
buffer = do_receive_from_socket(socket, buffer)
File "./test_program.py", line 131, in do_receive_from_socket
new_data = socket.recv(1024).decode('utf-8')
File "/Users/joelrietz/opt/anaconda3/lib/python3.7/ssl.py", line 1056, in recv
return self.read(buflen)
File "/Users/joelrietz/opt/anaconda3/lib/python3.7/ssl.py", line 931, in read
return self._sslobj.read(len)
ConnectionResetError: [Errno 54] Connection reset by peer@

Any suggestions?


Replies (12)

RE: Error when running test_program.py - Added by Nordnet_Support 4 months ago

This issue has been resolved. Sorry for the inconvenience.

Please run the program again. It should work.

RE: Error when running test_program.py - Added by Nelson 3 months ago

The output should appear to be identical to the output produced by running the Python programs https://www.prepaidgiftbalance.one/

RE: Error when running test_program.py - Added by skincare@ 2 months ago

The output should appear to be identical to the output produced by running the Python programs.
[[https://nicciskincare.com]]

RE: Error when running test_program.py - Added by Howard 2 months ago

The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages. It supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework.

RE: Error when running test_program.py - Added by Howard 2 months ago

The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages.

https://www.paygonline.vip/

RE: Error when running test_program.py - Added by Joel 2 months ago

I still get the same issue, are you sure that the API is working correctly?

RE: Error when running test_program.py - Added by Roger 2 months ago

I've got the same problem as Joel. The feed server is not working.

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

RE: Error when running test_program.py - Added by Azevedo about 1 month ago

Same issue occurring to me as well, please provide any relevant solution to this https://www.mycfavisit.onl/

RE: Error when running test_program.py - Added by Avendano 14 days ago

This is a very nice post [url=https://www.logiguard.com/telloutback/]telloutback[/url].

(1-12/12)