Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi,
I am making a REST API call to get Thing property data from Thingworx server using postman.
I am able to see the reponse code is 200. But I am not able to see any data in the response.
As seen below, I am trying to get the value of name property from SystemRepository. I am getting successful response, but no data is returned.
In this scenario Thingworx server is a secured server hosted behind a proxy server nginx.
Can anyone point me to the issue what may be happening.
Thanks and Regards,
Bhushan
Solved! Go to Solution.
I believe this is related to the way nginx is configured, but I can not point to the specific configuration of nginx that is required in this situation, since it's not a PTC product.
However, I can confirm that this call returns the proper value when executed against a local ThingWorx installation in my laptop.
The response should be:
{"dataShape":{"fieldDefinitions":{"name":{"name":"name","description":"Thing name","baseType":"STRING","ordinal":0,"aspects":{"isReadOnly":true,"isPersistent":false,"isBuiltIn":true}}}},"rows":[{"name":"SystemRepository"}]}
As mentioned in Original Post, the Thingworx server is hosted behind the Proxy Server(NGINX).
Could this be the issue? As I try to execute any call, In the response I am seeing the Server as nginx.
If nginx is the error then what would be the additional authorization parameters we will need to use for the server access.
Any Help will be appreciated.
Thanks and Regards,
Bhushan
I believe this is related to the way nginx is configured, but I can not point to the specific configuration of nginx that is required in this situation, since it's not a PTC product.
However, I can confirm that this call returns the proper value when executed against a local ThingWorx installation in my laptop.
The response should be:
{"dataShape":{"fieldDefinitions":{"name":{"name":"name","description":"Thing name","baseType":"STRING","ordinal":0,"aspects":{"isReadOnly":true,"isPersistent":false,"isBuiltIn":true}}}},"rows":[{"name":"SystemRepository"}]}