Closed Clarkszw closed 6 months ago
That is a good point. AiiDA should probably urlencode the password before using it, like in https://stackoverflow.com/a/1424009/1069467
I’m attempting a certain process (as depicted in the attached image), but I’m uncertain if it’s the right approach. Since I’m a beginner with AiiDA, could you kindly assist me in resolving this issue
Hi @SharanRP , I suggest you search for create_engine
in the AiiDA codebase and urlencode the password before passing it to that function, as in the StackOverflow post I linked
https://github.com/search?q=repo%3Aaiidateam%2Faiida-core%20create_engine&type=code
Then, create a test with a password that includes the @
character; perhaps somewhere here https://github.com/aiidateam/aiida-core/blob/main/tests/cmdline/commands/test_setup.py#L204
@ltalirz, I've submitted a pull request addressing the changes you provided guidance on
Describe the bug
When I setup my profile, if the password of the postgres user is
@abcde
, which starts with@
, it will throw this error with a wronghost name
:Your environment