Hubs-Foundation / hubs-cloud

Resources for self hosted Hubs Cloud instances
Mozilla Public License 2.0
152 stars 95 forks source link

Google Poly 500 Error #118

Closed n8icus closed 3 years ago

n8icus commented 3 years ago

I've set up the google poly api key on my hubs cloud server. In Spoke and in rooms it allows me to browse the library but not place objects. When I try to place an object it never loads and the console shows a 500 error from google poly.

n8icus commented 3 years ago

Below is the console log from opening a new project in spoke through adding a google poly asset to the scene. If any further logs would be useful, please let me know.

Telemetry disabled | Navigated to: /spoke/projects/editor 2 telemetry.js:39:12 XHRGEThttps://caavcon.com/api/v1/media/search?source=scene_listings&filter=featured-remixable&q= [HTTP/2 200 OK 206ms]

THREE.WebGLRenderer 106dev three.module.js:23974:9 THREE.WebGLRenderer: WEBGL_multiview extension not supported. three.module.js:16150:12 THREE.WebGLRenderer: OVR_multiview extension not supported. three.module.js:16150:12 THREE.WebGLRenderer 106dev three.module.js:23974:9 THREE.WebGLRenderer: WEBGL_multiview extension not supported. three.module.js:16150:12 THREE.WebGLRenderer: OVR_multiview extension not supported. three.module.js:16150:12 THREE.WebGLRenderer 106dev three.module.js:23974:9 THREE.WebGLRenderer: WEBGL_multiview extension not supported. three.module.js:16150:12 THREE.WebGLRenderer: OVR_multiview extension not supported. three.module.js:16150:12 Telemetry disabled | Navigated to: /spoke/projects/editor telemetry.js:39:12 XHRGEThttps://caavcon-1-assets.caavcon.com/spoke/assets/models/spawn-point-af89f0ed6871147032774ddc8bdfb5ec.glb XHRGEThttps://caavcon-1-assets.caavcon.com/spoke/assets/templates/crater-e975a1ff3443658ed233d9073e05a13a.spoke THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(95,94-171): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them C:\fakepath(65,44-152): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them C:\fakepath(104,38-248): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them C:\fakepath(116,38-129): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them three.module.js:18326:11 XHRGEThttps://caavcon-1-cors-proxy.caavcon.com/https://uploads-prod.reticulum.io/files/728260ab-4e8f-4052-8e1a-c7fae3492989.glb [HTTP/2 200 OK 0ms]

WebGL warning: blitFramebuffer: DRAW_FRAMEBUFFER may not have multiple samples. WebGLAtlasTexture.js:405:15 THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(285,23-154): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them C:\fakepath(281,18-93): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them three.module.js:18326:11 THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(270,23-154): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them C:\fakepath(266,18-93): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them three.module.js:18326:11 THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(146,18-93): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them three.module.js:18326:11 XHRGEThttps://caavcon.com/api/v1/media/search?source=poly [HTTP/2 200 OK 102ms]

THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(254,23-154): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them C:\fakepath(250,18-93): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them three.module.js:18326:11 XHRPOSThttps://caavcon.com/api/v1/media [HTTP/2 500 Internal Server Error 161ms]

o: Error loading model "https://poly.google.com/view/dLHpzNdygsg": Cause: Error resolving media "https://poly.google.com/view/dLHpzNdygsg": Cause: Failed to fetch "https://caavcon.com/api/v1/media": Cause: Network Error: 500 Internal Server Error r errors.js:29 o errors.js:37 load ModelNode.js:237 async*set src ModelNode.js:97 drop index.js:50 drop ViewportPanelContainer.js:229 drop drop.js:44 se drop.js:38 oe drop.js:19 ModelNode.js:243:14 THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(103,18-93): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them three.module.js:18326:11

n8icus commented 3 years ago

Okay I went through the API setup process again and fixed it. I think it was entirely on my end with setting up the cridentials incorrectly. I'll close the issue thanks!