How to resolve issue with OSLC workshop, getting error "Javascript is either disabled or not available in your Browser"
I am going through the oslc workshop, for "whoami" service I got the user and while trying with the same user with below url as mentioned in oslc workshop I am getting a html response instead of xml response saying "Javascript is either disabled or not available in your Browser".
Accepted answer
This is the symptom for getting an HTML page (with javascript) back instead of an XML/JSON response body. The response HTML has JavaScript and the REST Client can not interpret that.
The typical reasons are:
- Wrong URI
- Missing or wrong headers
-
Missing or wrong login credentials in the header
-
Not following the workshop correctly and e.g. skipping the login to the application before doing these steps
Comments
Hi Ralph,
No, you are apparently not. I just followed the steps (you fail to say which steps, so I did up to Lab 2.2 page 34 and all the steps worked for me.
And as I said 2.1. Step __5. requires you to login. If you don't or use a different REST client in a different application the Login or redirect web page will come up and cause your error.
The HTML you show indicates that.
net.jazz.ajax._appPath = "/jts/auth/authrequired";
If I log out and post again, I get exactly your result.
Thanks for your answer Ralph..after reinstalling REST client it's working fine, I am getting expected result now.
Good to Know. I started to use POSTMAN (based on a Crome app) last time I did REST, because it saves requests. I liked it better than the Firefox REST Client.