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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Unable to publish experience from Vuforia Studio

bhoey1
4-Participant

Unable to publish experience from Vuforia Studio

Hello - 

 

I'm not able to successfully publish an Experience from Vuforia Studio to our corporate experience server.  The experience server does validate successfully from the info tab in Vuforia studio(see attached screenshot). 


Log file shows that the publishing process failed, but it's not clear why it failed (logfile attached).

 

I'm NOT using the trial version and the experience server is on our corporate network. I'm connected from home through VPN. The file/experience size is not large - about 3 MB.

 

Any help appreciated!

 

Bill

6 REPLIES 6
sdidier
17-Peridot
(To:bhoey1)

Hello Bill,

 

I have looked in the Vuforia Studio log file provided.

I have found these exceptions reported :

 

[2020-04-07T15:48:58.597Z] error: [twx-studio:auth:oauthHandler] Error making request for oauth configUnexpected token < in JSON at position 4 SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Request._callback (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\dist\server\auth\oauthHandler.js:109:50)
at Request.self.callback (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\node_modules\request\request.js:185:22)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at Request.<anonymous> (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\node_modules\request\request.js:1154:10)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at IncomingMessage.<anonymous> (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:417:28)
[2020-04-07T15:51:03.226Z] error: [twx-studio:ves-publish:1586274536342:Hood Test] Response code undefined
[2020-04-07T15:51:03.227Z] info: [twx-studio:ves-publish:1586274536342:Hood Test] zip size 2649516 bytes (approximately 3 MB)
[2020-04-07T15:51:03.226Z] error: [twx-studio:ves-publish:1586274536342:Hood Test] Response body undefined
[2020-04-07T15:51:03.227Z] error: [twx-studio:ves-publish:1586274536342:Hood Test] Response error read ECONNRESET Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
[2020-04-07T15:51:03.227Z] error: [twx-studio:ves-publish:1586274536342:Hood Test] Failed to upload to the Experience Service.read ECONNRESET Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}

 

It seems Vuforia Studio is not able to connect to Vuforia Experience Service according to this article with the same exception :

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

 

We can see an error due to a ssl certificate also and another exception due to a proxy.

 

I have some questions :

  • In Vuforia Studio what appends when clicking on the Validate button in your screenshot ?
  • What is the complete URL setup in the screenshot provided ?

 

Next step will be to check in a web browser if it is possible to ping Vuforia Experience Service in a web browser..

 

Best regards,

Samuel

bhoey1
4-Participant
(To:sdidier)

Thank you for your helpful reply.  To answer your questions:

 

I am able to click Validate on the Info screen and successfully validate the Experience Service. 

 

The complete URL of the Experience Server shown in the screenshot is: https://thingworxssl-paccartech.msappproxy.net

 

I am also able to successfully ping the Experience Server by appending the ping commandment to the end of the URL like this:

 

 
When I enter the URL into a browser the server returns "OK". 
 
Thanks again for your help!
 
Bill Hoey

 

bhoey1
4-Participant
(To:sdidier)

Any further thoughts on this?

 

Bil

sdidier
17-Peridot
(To:bhoey1)

Hello Bill,

 

It seems you are able to contact Vuforia Experience Service.

I don't see a reason why publications is failling due to a problem to connect to it.

It doesn't make sense.

So, we can try this approach to understand the root cause.

 

Can you follow these steps, please ?

  1. Stop Vuforia Studio
  2. Clean the log file
  3. Restart Vuforia Studio
  4. Republish the Project again
  5. Share this clean log file
  6. In Vuforia Experience Service,check the output of verbose (It should be in a log file)
  7. Share it also.
  8. Check in Project folder on Vuforia Experience Service, if Experience folder is present.

Best regards,

Samuel

bhoey1
4-Participant
(To:sdidier)

Thanks for the info. 

 

A fresh log file is attached that contains only the following activities:

 

  • Start Vuforia Studio
  • Opened project
  • Validate the Experience Server
  • Cick Publish
  • Acknowledge Error Message

It looks like steps 6-8 that you provided require access to the Experience Server. Is that the case?  If so, I don't personally have access to it but I can request that information. 

 

Thanks!

 

Bill Hoey

 

sdidier
17-Peridot
(To:bhoey1)

Hello Bill,

 

Thanks you for the log file.

About steps 6-8 need an acces to the server, it is correct.

 

I have investigated in local log file generated by Vuforia Studio.

We have that :

[2020-04-14T15:12:56.288Z] error: [twx-studio:auth:oauthHandler] Error making request for oauth configUnexpected token < in JSON at position 4 SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Request._callback (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\dist\server\auth\oauthHandler.js:109:50)
at Request.self.callback (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\node_modules\request\request.js:185:22)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at Request.<anonymous> (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\node_modules\request\request.js:1154:10)
at Request.emit (events.js:311:20)
at Request.EventEmitter.emit (domain.js:482:12)
at IncomingMessage.<anonymous> (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:417:28)
[2020-04-14T15:14:59.984Z] error: [twx-studio:ves-publish:1586877173528:Hood Test] Response code undefined
[2020-04-14T15:14:59.985Z] info: [twx-studio:ves-publish:1586877173528:Hood Test] zip size 2649552 bytes (approximately 3 MB)
[2020-04-14T15:14:59.984Z] error: [twx-studio:ves-publish:1586877173528:Hood Test] Response body undefined
[2020-04-14T15:14:59.985Z] error: [twx-studio:ves-publish:1586877173528:Hood Test] Response error read ECONNRESET Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
[2020-04-14T15:14:59.985Z] error: [twx-studio:ves-publish:1586877173528:Hood Test] Failed to upload to the Experience Service.read ECONNRESET Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
[2020-04-14T15:14:59.985Z] error: [twx-studio:projectHelper] publishTask error for project Hood_Test Failed to upload to the Experience Service.
[2020-04-14T15:14:59.987Z] error: [twx-studio:api] Error occured while publishing project Hood_Test Failed to upload to the Experience Service.

 

So Experience is not published on Vuforia Experience Service. I am pretty sure about that.

We migh find more details in verbose generated on Vuforia Experience Service when publishing this Project Hood_Test.

 

I have looked more deeply about the first exception reported :

error: [twx-studio:auth:oauthHandler] Error making request for oauth configUnexpected token < in JSON at position 4 SyntaxError: Unexpected token < in JSON at position 4
at JSON.parse (<anonymous>)
at Request._callback (C:\Users\Bill.Hoey\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\dist\server\auth\oauthHandler.js:109:50)

 

In %USER_PROFILE%\AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\dist\server\auth\oauthHandler.js file, at line 109, it is refering to a file named oauth-config.

It is downloaded when using this URL https://thingworxssl-paccartech.msappproxy.net/ExperienceService/.well-known/oauth-config

 

  • Can you have this file by running URL or copying it on Vuforia Experience Service, please? It seems that's file has a bad json format.
  • Does Vuforia Experience Service is setup to use SSO ?
  • In Vuforia Studio, what is setup in Home web page, in ... button at upper on right, in Settings menu ?

 

Best regards,

Samuel

Top Tags