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 about certificate #1

Open
pupaxxo opened this issue Dec 20, 2014 · 10 comments
Open

Error about certificate #1

pupaxxo opened this issue Dec 20, 2014 · 10 comments

Comments

@pupaxxo
Copy link

pupaxxo commented Dec 20, 2014

I've configured the dns and installed the certificate but when i open cortana and i ask something i get this error on the console:
[-] HTTPS Error: SELF_SIGNED_CERT_IN_CHAIN
And cortana after 1 minute says that she cannot receive the information.

@ghost
Copy link

ghost commented Dec 21, 2014

We cannot reproduce it, for now we have only tested and works on Lumia 735 and HTC 8X.
Can you describe every step you did?

@pupaxxo
Copy link
Author

pupaxxo commented Dec 21, 2014

First i'm using Windows with node v0.10.34 and npm v1.4.28. Then I've done this:

  • Cloned the repo
  • Disable windows firewall
  • npm install
  • npm start
  • changed router lan dns
  • checked dns from windows phone wifi settings
  • went to www.bing.com:8888 and installed the certificate
  • opened cortana and tried "turn off the lamp"
  • Cortana start loading for a infinite time.
  • On the console get 2 errors: http://screen.pupax.me/1419188082.png
  • On the phone "Can't connect now. Try later"

P.S. I'm using an italan country variant Lumia 820

I'm trying it on linux.

@pupaxxo
Copy link
Author

pupaxxo commented Dec 21, 2014

Same error on linux

@pupaxxo
Copy link
Author

pupaxxo commented Dec 21, 2014

I worked on the code and i noticed that in italian cortana request is different: there is no usersaid.
The request is:

{ q: 'test',
pivot: 'web',
persona: '0',
input: '1',
form: 'ALVTLE2',
mkt: 'it-IT',
setlang: 'it-IT' }

or:
{ q: 'turn on the lamp',
pr: '1',
cuid: '{D33582F6-D325-4F23-B539-2AE274F079DA}',
input: '5',
form: 'ALVTLE',
mkt: 'it-IT',
setlang: 'it-IT' }

@pupaxxo
Copy link
Author

pupaxxo commented Dec 21, 2014

Now it works, I added rejectUnauthorized: false in var optpro = {...} (proxy.js). This prevents the HTTPS error. And i removed the usersaid != '' condition.

@ghost
Copy link

ghost commented Dec 21, 2014

Thanks! But we need to find another variable sent only by Cortana, because if you filter only "q", the actions will be made even with a normal Bing search.

@ghost
Copy link

ghost commented Dec 21, 2014

"usersaid" is also present in the Italian version (tested on HTC 8X and Lumia 735), are you sure you have updated to the latest Developer Preview?
Remember that also the Country of the phone need to be set to Italy for Cortana, instead the search button will perform a vocal Bing search.

@pupaxxo
Copy link
Author

pupaxxo commented Dec 22, 2014

I've just made a few test and i noticed that usersaid is present only when you say something, if you write instead of speaking you don't send any usersaid parameter. This prevent cortana speaking when you write.

@pupaxxo
Copy link
Author

pupaxxo commented Dec 22, 2014

Search from bing:
{ q: 'ciao',
pivot: 'web',
persona: '0',
input: '1',
form: 'ALVTLE2',
mkt: 'it-IT',
setlang: 'it-IT' }

Cortana without speaking:
{ q: 'ciao',
pr: '1',
cuid: '{0CCFD60F-DD1D-4ED3-A09F-EF182C3138AA}',
input: '1',
form: 'ALVTLE',
mkt: 'it-IT',
setlang: 'it-IT' }

Cortana speaking:
{ q: 'ciao',
speech: '1',
input: '1',
cacheId: '3f165130-820a-4110-86da-26e3ecaa60b8',
usersaid: 'Ciao.',
form: 'ALVTLE2',
mkt: 'it-IT',
setlang: 'it-IT' }

@AAJAY5
Copy link

AAJAY5 commented Jul 14, 2016

i got this error . not working
cortana

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

2 participants