Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while Posting new Target #2

Open
ssuryakumar opened this issue Aug 11, 2015 · 6 comments
Open

Error while Posting new Target #2

ssuryakumar opened this issue Aug 11, 2015 · 6 comments

Comments

@ssuryakumar
Copy link

While posting new target , it throws error 'Fail'. Format of json is followed as per instructions.
But Get operation works fine. Problem occurs only on creating new target

@pwasem
Copy link
Owner

pwasem commented Aug 12, 2015

Hi there, I haven 't used or tried the plugin recently. Feel free to contribute

@ssuryakumar
Copy link
Author

Sure Pwasem !

@Sikandarkhan
Copy link

@ssuryakumar did you resolve this ?

@kylerberry
Copy link

kylerberry commented Feb 28, 2018

@ssuryakumar @Sikandarkhan

I too had this issue. I scoured the documentation and finally got ahold of Vuforia support. There's nothing wrong with this library.

The Vuforia documentation for Adding a Target does not list image as a mandatory field.

screen shot 2018-02-28 at 3 18 52 pm

Guess what? It is. And make sure you base64encode it.

When attempting to add a target, you must follow the example in the README
only application_metadata is not required.

var target = {

    // name of the target, unique within a database

    'name': 'my target',

    // width of the target in scene unit

    'width': 32.0,

    // the base64 encoded binary recognition image data

    'image': util.encodeFileBase64(__dirname + '/someImage.png'),

    // indicates whether or not the target is active for query

    'active_flag': true,

    // the base64 encoded application metadata associated with the target

    'application_metadata': util.encodeBase64('some metadata about your image')
};

It seems a little obvious but I've been stuck on this all day

@N7Nico
Copy link

N7Nico commented May 5, 2021

Hello,
The module worked fine until a few months ago and now it shows 'Fail' when I post a new target.
Name, width, image and active_flag are correct and nothing changed in my code.

I don't have any indications that Vuforia changed something in their VWS API.

Did someone have any clues ?

@CidChe
Copy link

CidChe commented Mar 17, 2022

Hello, i am trying to add an Image with addTarget() but I have the following issue :
{
result_code: 'Fail',
transaction_id: '2009b98eeae94ec6afdaef5a22428963'
}
Moreover, I use postman to post a target directly on my route.
Can somebody help me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants