Issues when log in

Added by Staffan 7 months ago

I am trying to log in using [[https://github.com/nordnet/next-api-v2-examples/blob/master/python3/test_program.py]], with this I get the following traceback:

Checking NEXT API status...
<< HTTP request GET /next/2/ {
"message": "",
"system_running": true,
"timestamp": 1589225418498,
"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": "0db12e07d5ff563d939295e44cfb6300b8b2679c"
}

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

Traceback (most recent call last):
File "test_program.py", line 219, in <module>
main()
File "test_program.py", line 192, in main
proc.start()
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\socket.py", line 192, in getstate
raise TypeError("Cannot serialize socket object")
TypeError: Cannot serialize socket object

(Nordnet-API) C:\Magnus200511\next-api-v2-examples\python3>Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\spawn.py", line 99, in spawn_main
new_handle = reduction.steal_handle(parent_pid, pipe_handle)
File "C:\Users\pusj\AppData\Local\Continuum\anaconda3\envs\Nordnet-API\lib\multiprocessing\reduction.py", line 87, in steal_handle
_winapi.DUPLICATE_SAME_ACCESS | _winapi.DUPLICATE_CLOSE_SOURCE)
PermissionError: [WinError 5] Access is denied

I have tried runnning different Python versions (3.7.0 and 3.7.7) since there has been an issue with the cryptography dependency (but this does not seem to be the case).

Any ideas?