Start a new topic

Error 500 When calling generateWTC

Hi,

 

I have encountered certain issues when requesting the API calls.

 

To be specific I'm calling the generateWTC call located here: https://www.wikitude.com/external/doc/documentation/latest/Reference/Cloud%20Recognition%20REST%20API/index.html#api-TargetCollection-GenerateWTC

 

I've checked that my Token, sdk version, email and headers are correct but have received error code 500. I sincerely hope that you can assist me on this. Here are more details of the implementation.

 

POST /cloudrecognition/targetCollection/5b1a31b551ec391a149ee1d5/generation/wtc HTTP/1.1

Host: api.wikitude.com

X-Version: 3

X-Token: $token

Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

Cache-Control: no-cache

Postman-Token: 15306e30-fc8e-dd56-ad0d-55a9bbabb288


------WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="sdkVersion"


7.0

------WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="email"


management@techknow.com.sg

------WebKitFormBoundary7MA4YWxkTrZu0gW--

 

I would really appreciate it if you could help us on this. The quicker we get it to production the quicker we will purchase the SDK license key. Thank you so much for your swift support so far.

 

Regards,

Garrison

1 Comment


Hello Garrison,


I noticed that you use incorrect parameters.

For example, you need to set the Content-Type to application/json

The body has to be a JSON Object.

Check the API reference for further information.


Hope that helps,

Christian

Login or Signup to post a comment