The issue has been solved. My current baseurl was: http://10.0.2.2:6000/auth but when I changed to it http://10.0.2.2:5001/auth the issue got resolved and I could get the required response. Issue is still there when I use port 6000