irllabs / archive_socialvr-browser

1 stars 0 forks source link

Can not save experience with one room and no hotspots #4

Closed batchku closed 6 years ago

batchku commented 6 years ago

steps to repeat:

result:

image

this error in console:

fileLoader.onloadEnd e {changingThisBreaksApplicationSecurity: "data:image/jpeg;base64,/9j/4e/uRXhpZgAATU0AKgAAAAg…Ahenh0f8ALe5/76/+tSf8L18O/wDPe5/76/8ArUexYXR//9k="}
zone.js:1 [Violation] 'load' handler took 454ms
zone.js:1 [Violation] 'load' handler took 238ms
core.es5.js:1020 ERROR TypeError: Cannot convert undefined or null to object
    at Function.assign (<anonymous>)
    at e.uploadMediaFileToS3 (serializationService.ts:43)
    at serializationService.ts:112
    at Array.map (<anonymous>)
    at serializationService.ts:110
    at Array.forEach (<anonymous>)
    at e.uploadAssets (serializationService.ts:76)
    at e.zipStoryFile (serializationService.ts:243)
    at e.createProject (projectInteractor.ts:66)
    at e.saveStoryFileToServer (story.ts:199)
_ @ core.es5.js:1020
t.handleError @ core.es5.js:1080
(anonymous) @ core.es5.js:9232
(anonymous) @ platform-browser.es5.js:2648
e.invokeTask @ zone.js:425
onInvokeTask @ core.es5.js:3881
e.invokeTask @ zone.js:424
r.runTask @ zone.js:192
t.invokeTask @ zone.js:499
N @ zone.js:1540
f @ zone.js:1566
zone.js:1 [Violation] 'click' handler took 155ms
zone.js:2933 GET https://api.socialvrlab.com/media/ 404 (Not Found)
c @ zone.js:2933
e.scheduleTask @ zone.js:411
onScheduleTask @ zone.js:301
e.scheduleTask @ zone.js:405
r.scheduleTask @ zone.js:236
r.scheduleMacroTask @ zone.js:259
(anonymous) @ zone.js:2966
i.(anonymous function) @ zone.js:1366
(anonymous) @ http.es5.js:1275
t._trySubscribe @ Observable.js:172
t.subscribe @ Observable.js:160
t.call @ map.js:56
t.subscribe @ Observable.js:157
t.call @ tap.js:63
t.subscribe @ Observable.js:157
e.getUploadPolicy @ assetInteractor.ts:44
e.uploadMediaFileToS3 @ serializationService.ts:39
(anonymous) @ serializationService.ts:112
(anonymous) @ serializationService.ts:110
e.uploadAssets @ serializationService.ts:76
e.zipStoryFile @ serializationService.ts:243
e.createProject @ projectInteractor.ts:66
e.saveStoryFileToServer @ story.ts:199
e.onSaveStoryClick @ story.ts:144
(anonymous) @ e.ngfactory.js:114
_ @ core.es5.js:11998
handleEvent @ core.es5.js:12717
oe @ core.es5.js:8614
(anonymous) @ core.es5.js:9228
(anonymous) @ platform-browser.es5.js:2648
e.invokeTask @ zone.js:425
onInvokeTask @ core.es5.js:3881
e.invokeTask @ zone.js:424
r.runTask @ zone.js:192
t.invokeTask @ zone.js:499
N @ zone.js:1540
f @ zone.js:1566
assetInteractor.ts:46 e {_body: "<h1>Not Found</h1><p>The requested URL /media/ was not found on this server.</p>", status: 404, ok: false, statusText: "Not Found", headers: t, …}
yatriks commented 6 years ago

@batchku This had to do with the npm run deploy script not using the correct API server (it was still pointed at PROD). I changed some deploy commands and you should now be able to log in on the staging server & save projects.

I made a user on staging, and after clearing all site data for cmuartfab.github.io, was able to log in and save projects successfully.

Please let me know if this is still an issue after clearing all site data and trying again here: https://cmuartfab.github.io/socialvr-browser/#/editor/(modal:profile//view:flat)

yatriks commented 6 years ago

Should be resolved.