Error unlocking bitcoin core wallet with JSON RPC
You should write exactly

walletpassphrase "yourPassword" howmanysecondswillthewalletstayunlocked


For example

walletpassphrase "password33482" 6000


Then your wallet will stay unlocked for 6000 seconds.

(You can drop the quotes if your password doesn't have spaces, but it's always a great habit to use quotes.)