kc
No Issue with the approach you are using. Both the APIs works perfectly and return a new session without any error. It seems your instance-specific issue. I would suggest you reach out to support team. Might be they need to configure some settings.