Skip to main content
1-Visitor
June 7, 2018
Solved

Unable to create a Thing using Postman

  • June 7, 2018
  • 1 reply
  • 1908 views

I was trying to create a Thing using Postman.

I put the appKey and Content-Type = application/json as suggested in this website:

https://developer.thingworx.com/resources/guides/thingworx-rest-api-quickstart/use-rest-api-create-new-thing

 

The status code is 500 Internel Server Error and it says "Unable to Invoke Service CreateThing on EntityServices : No name provided in CreateThing".

 

Thanks.

Best answer by dupatel

@liuq Could you please share the exact REST call you are making along with details provided in header, parameters, etc using Postman. From the error it appears to be an issue with your REST call with existing TWX configuration.  Are you able to make any successful REST call pointing to the same ThingWorx instance? Also, check and provide Allow Request Method Switch setting for more detail please refer Help center page.

 

-Durgesh

1 reply

liuq1-VisitorAuthor
1-Visitor
June 7, 2018

HTTP/1.1 502 Bad Gateway
Connection: keep-alive
Content-Length: 240
Content-Type: text/html
Date: Thu, 07 Jun 2018 19:24:00 GMT
ETag: "5acdfc0e-f0"
Server: nginx

 

This is the response if I am using HTTPie.

dupatel5-Regular MemberAnswer
5-Regular Member
June 8, 2018

@liuq Could you please share the exact REST call you are making along with details provided in header, parameters, etc using Postman. From the error it appears to be an issue with your REST call with existing TWX configuration.  Are you able to make any successful REST call pointing to the same ThingWorx instance? Also, check and provide Allow Request Method Switch setting for more detail please refer Help center page.

 

-Durgesh