JK140
JK140

Reputation: 785

Google App Engine - Serving video url's from Google Cloud Storage Error in Chrome

I'm developing an app locally right now in Google App Engine in which users can upload videos. I've set up the Google Cloud Storage library and set the read-access to public.

In the dev server, you can access the files via the URL: http://localhost:8080/_ah/gcs/bucket/filename

I'm trying to serve the files in a video HTML tag but it resulting in an error in Chrome. I get the message: Failed to load resource: the server responded with a status of 500 (Internal Server Error). The server console shows the request for the file fails.

This only happens in Chrome and works fine in other browsers.

Any idea why this would be happening? It's a little hard to debug.

Upvotes: 0

Views: 659

Answers (1)

Andrei Volgin
Andrei Volgin

Reputation: 41089

You need to use a URL that leads to a Cloud Storage object. It looks like:

https://storage.googleapis.com/YOUR_BUCKET/YOUR_OBJECT

Look in the Console to get the name of your default app bucket. Usually it's the same as your app id.

Upvotes: 0

Related Questions