CcpnForum
version 3.0.3 registration error after update - Printable Version

+- CcpnForum (https://www.ccpn.ac.uk/forums)
+-- Forum: CcpNmr Analysis Version 3 (https://www.ccpn.ac.uk/forums/forumdisplay.php?fid=4)
+--- Forum: V3 General (https://www.ccpn.ac.uk/forums/forumdisplay.php?fid=8)
+--- Thread: version 3.0.3 registration error after update (/showthread.php?tid=180)



version 3.0.3 registration error after update - Pankaj - 06-10-2021

Hi,
I got the following message after installing the recent update-
"Could not connect to the registration server, please check your internet connection. Register within 5 day(s) to continue using the software."
There is no issue with my internet connection. What should I do?


RE: version 3.0.3 registration error after update - VickyH - 06-10-2021

Hi,

sorry about that - a mistake in one of our uploads. We've corrected it, so hopefully running
./update
in the ccpnmr3.0.4/bin directory should sort it out (update.bat on Windows).


If that doesn't work you'll have to make a small manual change to one of your files.
In the Analysis folder find the following file:
...../ccpnmr3.0.4/src/python/ccpn/util/Url.py

Then at about line 50 you’ll find the following section:
if not headers:
headers = {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}
body = urlencode(data, quote_via=quote).encode('utf-8') if data else ''
headers['Content-Length'] = f'{len(body)}'

Comment out the last line so it becomes:
if not headers:
headers = {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}
body = urlencode(data, quote_via=quote).encode('utf-8') if data else ''
# headers['Content-Length'] = f'{len(body)}'

Then restart the program and should be fine again.

Vicky


RE: version 3.0.3 registration error after update - Pankaj - 06-11-2021

Hi Vicky,
Thanks for the help; running ./update worked.

Pankaj