Start a new topic

Targets API - Error code 403

Targets API - Error code 403


Hi I'm new to wikitude and it's Targets API.

When I run the example Java code from https://github.com/Wikitude/wikitude-targets-api-samples/tree/master/Java , I got the following error:
java.io.IOException: Server returned HTTP response code: 403 for URL: https://api.wikitude.com/targets/wtc-url

I have read the return code section here: https://www.wikitude.com/external/doc/documentation/latest/targetsapi/cloud-target-api.html#response
It suggest that my "quota limit has been reached already", but my in my licence section stands under wikitude targets API section: "Usage 0/50".

So what else could it be, when the http response error 403 was thrown?

 

Thank you & best regards

Julian

Hi Julian,

thanks for trying out our Targets API!

Did you try to send multiple targets in the same request ?

It can be another reason for getting 403. As a matter of fact, a trial token allows to send only one target per request.

Let us know if it helps in solving your issue.

Have a nice day,

Simone

Hi Simone,

thank you that solve my coding problem. But I need to create a wtc file with more than one image.

Is it only possible with a full licence to try that out? Are there other possibilities to realise that with a Rest API? At the moment I'm writting my master thesis and want to use our sdk for it. I can go more in detail when I writte you a personal e-mail.

Thank you & best regards

 

Julian

Hi Julian,

I'm happy to hear that it solved your issue.

> Is it only possible with a full licence to try that out?

You can manually generate a wtc file with more images via our Target Manager .

> Are there other possibilities to realise that with a Rest API?

Unfortunately not (yet). You will need a full Targets API license in order to generate a wtc file with more images via a REST API.

> At the moment I'm writting my master thesis and want to use our sdk for it. I can go more in detail when I writte you a personal e-mail.

In regards to your master thesis please contact our team via the Wikitude Academy page at http://www.wikitude.com/wikitude-academy/

See you soon!

Simone
Login or Signup to post a comment