Coder Social home page Coder Social logo

Comments (13)

Tazaf avatar Tazaf commented on July 24, 2024

Hi !
I'll look into that problem soon and will come back to you.
(I didn't test all the worlds after making the demo app)

from ionicitudedemoapp.

GeoffSeloana avatar GeoffSeloana commented on July 24, 2024

Greetings sir... have you had some time to check the error

from ionicitudedemoapp.

Tazaf avatar Tazaf commented on July 24, 2024

Hi !

My deepest apologies, but no, I haven't had quite the time to look into the matter recently
(Too. Much. Work 😩)

I'll try to spare some time this afternoon for that, though.

from ionicitudedemoapp.

GeoffSeloana avatar GeoffSeloana commented on July 24, 2024

Okay thank you so much. Much appreciated

from ionicitudedemoapp.

Tazaf avatar Tazaf commented on July 24, 2024

Wel... I've just tried the demo app on my side (by following the installation procedure from scratch) and everything's working nicely for the two worlds you've mentionned.
They launch without any issue and works as expected.

When did the error message occur ? Right when you launched the world or when you tried to scan the pictures ?

from ionicitudedemoapp.

GeoffSeloana avatar GeoffSeloana commented on July 24, 2024

I have just tried it now. It happens when i click on the button. and in the other world it happens without clicking

from ionicitudedemoapp.

Tazaf avatar Tazaf commented on July 24, 2024

Which button ? The one that says "Scan" in the 2_CloudRecognition_1_BasicRecognitionOn-Click world ?

Well, I don't know what to say. I can't reproduce the issue on my side, so it's difficult to debug.
What happen when you develop the Uncaught Syntax Error on the console ? On the screenshot you provided, they're all collapsed.

I could only advise you to dig into the code of the first world (since you can manually trigger the scan), and try and pinpoint what line exactly is causing the error.

In anyway, I can safely say that the problem is not related to Ionicitude, since this world does not rely on the module to work (except for the launching, but this step seems to be OK).

from ionicitudedemoapp.

GeoffSeloana avatar GeoffSeloana commented on July 24, 2024

image

So this happens when i click on the "Scan" button. And i just downloaded this code from the repo. haven't changed anything at all.

Would you mind sending me the one you tried, the one that works.

from ionicitudedemoapp.

Tazaf avatar Tazaf commented on July 24, 2024

Well...
I just didn't do anything other that cloning the code on the repo, too 😕

Do you have any more information from the console (like by clicking the gray arrow beside the error message) ?

Quite frankly, I don't understand what could cause the issue. And since I can't reproduce it on my side, it's really hard to dig into it.

from ionicitudedemoapp.

GeoffSeloana avatar GeoffSeloana commented on July 24, 2024

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)

from ionicitudedemoapp.

Tazaf avatar Tazaf commented on July 24, 2024

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.

from ionicitudedemoapp.

GeoffSeloana avatar GeoffSeloana commented on July 24, 2024

Please replace the wikitudesdk.aar (for Android) or WikitudeSDK.framework (for iOS) in your existing Cordova project with the latest from wikitude download section. Android,IOS
This worked for me :-)

from ionicitudedemoapp.

Tazaf avatar Tazaf commented on July 24, 2024

I'm glad you found a solution !
But I can't replace the sdk, since it's not present in the project: it's downloaded when you use the ionic state restore command.
I'll update the doc and insert your advice, though 😉

from ionicitudedemoapp.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.