Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
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
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 :
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
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:
Any further thoughts on this?
Bil
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 ?
Best regards,
Samuel
Thanks for the info.
A fresh log file is attached that contains only the following activities:
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
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
Best regards,
Samuel