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] console.log(error) console.error(result); /* result would look like { result_code: 'AuthenticationFailure', transaction_id: '58b51ddc7a2c4ac58d405027acf5f99a' } */ } else { console.log("AT WRITE PLACE") console.log(result); /* 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.
Thanks
Hello,
Hello,
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)
Thanks,
Vuforia Engine Support