cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Vuforia: Failed to authorize experience server.

MaF
7-Bedrock
7-Bedrock

Vuforia: Failed to authorize experience server.

Hi, 

I am getting the below error when trying to validate or publish an experience in Studio, when we enable self-signed checkbox then we are able to both validate and publish but then when we try to view the experience using Vuforia View we get massage:Unable to load the experience.

 

We then tried re-configuring the server to use http and everything seems to be working as expected but this option is not same as we are also connecting to thingworx with sensitive data.

 

We followed the pdf documentation "Vuforia_Experience_Service" but still we having these issues.

 

Log file output when using https:

[2021-04-19T10:35:52.848Z] debug: [twx-studio:auth] Updating cached sslValidate to true
GET /api/switch 200 4.368 ms - -
GET /api/switch 200 0.840 ms - -
[2021-04-19T10:35:53.974Z] debug: [twx-studio:auth] Authenticate using: https://xxxx:xxxx ssl: true GET /validate
[2021-04-19T10:35:53.974Z] debug: [twx-studio:AuthRequest] doRequest /ExperienceService/username
[2021-04-19T10:35:53.975Z] debug: [twx-studio:auth] Use Basic authorization
[2021-04-19T10:35:54.003Z] debug: [twx-studio:AuthRequest] https://xxxxxx/ExperienceService/username response code undefined
[2021-04-19T10:35:54.003Z] debug: [twx-studio:AuthRequest] https://xxxxxx/ExperienceService/username Error Error: self signed certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
at TLSSocket.emit (events.js:315:20)
at TLSSocket.EventEmitter.emit (domain.js:467:12)
at TLSSocket._finishInit (_tls_wrap.js:932:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
at TLSWrap.callbackTrampoline (internal/async_hooks.js:131:14) {
code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
}
[2021-04-19T10:35:54.003Z] debug: [twx-studio:auth] Failed to authenticate experience server https://xxxx:xxxx undefined undefined
GET /api/validate 500 31.335 ms - 37

1 ACCEPTED SOLUTION

Accepted Solutions
sdidier
17-Peridot
(To:MaF)

Hello,

 

I believe that Vuforia Experience Service has been installed with a SSL certificate self-signed.

Please read this article :

https://www.ptc.com/en/support/article/CS262689

 

Apply the solution with the Environment Variable named NODE_TLS_REJECT_UNAUTHORIZED set at the value 0.

 

Best regards,

Samuel

View solution in original post

3 REPLIES 3
sdidier
17-Peridot
(To:MaF)

Hello,

 

I believe that Vuforia Experience Service has been installed with a SSL certificate self-signed.

Please read this article :

https://www.ptc.com/en/support/article/CS262689

 

Apply the solution with the Environment Variable named NODE_TLS_REJECT_UNAUTHORIZED set at the value 0.

 

Best regards,

Samuel

View solution in original post

MaF
7-Bedrock
7-Bedrock
(To:sdidier)

The link you sent to the article is dead: 

https://www.ptc.com/en/support/article/CS262689

MaF_0-1618911747692.png

 

we tried using different method but we still get the same error.

 

The problem is that even mobile users are not able to access the published experience when using Vuforia View, so even if we select self-signed on Studio the problem is that users are not able to consume the experience.

sdidier
17-Peridot
(To:MaF)

Hello,

 

I am not sure to understand.

It seems various issues have been reported and merged.

 

I think it is better to focus on one issue and after on next one ...etc.. in this use case.

 

In first post, issue is in Vuforia Studio when publishing when using HTTPS.

[2021-04-19T10:35:54.003Z] debug: [twx-studio:AuthRequest] https://xxxxxx/ExperienceService/username Error Error: self signed certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
at TLSSocket.emit (events.js:315:20)
at TLSSocket.EventEmitter.emit (domain.js:467:12)
at TLSSocket._finishInit (_tls_wrap.js:932:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
at TLSWrap.callbackTrampoline (internal/async_hooks.js:131:14) {
code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
}

 

To solve this exception, please follow the steps given in my previous post.

  1. In workstation where the issue occurs in Vuforia Studio
  2. In Windows, add Environment Variable named NODE_TLS_REJECT_UNAUTHORIZED set at the value 0
  3. Shutdown Vuforia Studio
  4. Start Vuforia Studio
  5. Try to publish again

 

Best regards,

Samuel

Announcements

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection