Log in or register to post comments

Vuforia Web Services API FAIL error

November 26, 2018 - 7:23am #1

Hello team,

I am Adding an traget in  my cloudDB by using nodejs NPM (https://www.npmjs.com/package/vuforiajs) . Getting error code FAIL(500) from server in uploading the target by using api. Please look into it ASAP.

Sample Code :

var target = {

            // name of the target, unique within a database

            'name': '12ssdfh',

            // width of the target in scene unit

            'width': 32.0,

            // the base64 encoded binary recognition image data

            'image': util.encodeFileBase64('/var/www/html/Glidar/backend/src/views/images/Screenshot.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')


        client.addTarget(target, function (error, result) {

            if (error) { // e.g. [Error: AuthenticationFailure]



                /* result would look like


                    result_code: 'AuthenticationFailure',

                    transaction_id: '58b51ddc7a2c4ac58d405027acf5f99a'




            } else {

                console.log("AT WRITE PLACE")


                /* result will look like


                    target_id: '93fd6681f1r74b76bg80tf736a11b6a9',

                    result_code: 'TargetCreated',

                    transaction_id: 'xf157g63179641c4920728f1650d1626'






Error :

 Error: Fail

    at IncomingMessage.<anonymous> (/var/www/html/Glidar/backend/node_modules/vuforiajs/lib/client.js:31:37)

    at IncomingMessage.emit (events.js:187:15)

    at IncomingMessage.EventEmitter.emit (domain.js:442:20)

    at endReadableNT (_stream_readable.js:1081:12)

    at process._tickCallback (internal/process/next_tick.js:63:19)

{ result_code: 'Fail',

  transaction_id: '027d66cde3f441cd95624de435a60229' }

Quick response will be appreciated.


Vuforia Web Services API FAIL error

November 27, 2018 - 12:43pm #2


Are you getting the same error when using our sample scripts to upload your target?

https://developer.vuforia.com/downloads/samples (see bottom of page)


Vuforia Engine Support

Log in or register to post comments