Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hello,
I am new to thingworx navigate.
I have written a service where it pulls data based on part number. While executing the service. I get below error.
"The requested URL /sslClientAuth/servlet/rest/search/objects was not found on this server". Below is my code snippet.
var params = {
type: 'GET',
url: me.getRestUrl() + "/search/objects",
queryParams: {
'$select': properties,
'$filter': "number eq '" + number + "'",
'navigationCriteria': navigationCriteria,
'typeId': selectedTypeId
}
};
var jsonResult = me.processJSONRequest(params);
can anyone please let me know what's wrong with the code?
Thanks,
RPathan
Solved! Go to Solution.
Change the baseURL under your thing-->configuration. In my case I didn't provide Windchill. After modifying the baseURL, the issue got resolved. This is what I provided. Replace localhost with your server name.
https://localhost:443/Windchill
I hope this helps.
The issue is resolved now.
what change di dyou make to fix this issue?
Change the baseURL under your thing-->configuration. In my case I didn't provide Windchill. After modifying the baseURL, the issue got resolved. This is what I provided. Replace localhost with your server name.
https://localhost:443/Windchill
I hope this helps.
thank you for response.
For me '443' is not working, intead '80' is working and have baseURL set same as yours.
Still i am getting 404 error everytime i run service same as you have given above.
if i run URL directly in browser, JSON is returning the result
If i run service for that JSON, then getting 404 error
443 is not working, means you have not configured https. That's fine. Don't use the same base URL as the mine one. In your case it might be something like this http://yourserver.com:80/Windchill.
just make sure your application identifier is Windchill only, also it's case sensitive. I have put Windchill, because that's how it is for my server.