Wikitude / wikitude-cordova-plugin

Wikitude's Augmented Reality Plugin for Cordova - working together with the Wikitude SDK library for Android and iOS. Provides image recognition and tracking, geo-based augmente reality and 3D rendering and animations in an augmented reality scene
https://www.wikitude.com
Other
201 stars 182 forks source link

Error on all cloud recognitions #113

Closed GeoffSeloana closed 7 years ago

GeoffSeloana commented 7 years ago

I just ran the sample app and everything works well except the following worlds

2_CloudRecognition_2_ContinuousRecognitionVsOn-Click 2_CloudRecognition_3_UsingMetainformationInTheResponse

getting the following error

image

So nothing shows up when i click on the down arrow. but when i click on the silver link on the side then this shows

setTimeout(function(){AR.om.getObjectForID(1).onRecognitionError(400, "{"code":400,"reason":"HEADER_PROPERTY_INVALID","message":"One or more header properties are invalid.","cause":[{"item":"X-Horizontal-FOV","value":"0"}],"moreInfo":"http://www.wikitude.com/developer/documentation/cloudrecognition"}");},0)

this is some advice and assistance i got when asking for help from other devs

Hum... From this message, I assume that there is some kind of header error when your device try to access the API. But I don't know what's causing it.

Anyway, with the code that you copied on your last message, we can see that it's some code that tries to execute this onErrorRecognition callback:

onRecognitionError: function onRecognitionError(errorCode, errorMessage) { alert("error code: " + errorCode + " error message: " + JSON.stringify(errorMessage)); }, Except it seems to pass a value for errorMessage that's all messed up with the quotation mark, as you can see (I've trimmed the message up to the first quotation mark):

"{"code":400,"reason":"HEADER_PROPERTY_INVALID","message":"One or more header properties are invalid.","cause":[{"item":"X-Horizontal-FOV","value":"0"}],"moreInfo":"http://www.wikitude.com/developer/documentation/cloudrecognition"}");},0) I think that it's what causing the Uncaught Syntax Error. But it's code that I have no access to.

I think you should discuss this issue directly with the folks at Wikitude, sorry.

AndreasSchacherbauerWikitude commented 7 years ago

Hi Geoffie, We already have an updated version of our SDK available in our beta download section. Please replace the wikitudesdk.aar (for Android) or WikitudeSDK.framework (for iOS) in your existing Cordova project with the one you downloaded from our beta download section. Here are the direct download links: Android, iOS

GeoffSeloana commented 7 years ago

Thank you so much. Works perfectly