Export to GitHub

google-plus-platform - issue #1033

Previously working hangout app broke with "Refused to execute script from 'https://talkgadget.google.com/hangouts/_/api/hangout.js?v=1.2'"


Posted on Nov 15, 2014 by Grumpy Bird

Hello,

I made a hangout app a couple years ago, and it suddenly broke recently (project id 992346871022). Attempting to load it from within a hangout just gives the generic error: "There was an error loading your app! This app did not load because there appears to be something wrong with it."

The only thing the Chrome console prints is this:

Resource interpreted as Script but transferred with MIME type text/html: "https://talkgadget.google.com/hangouts//api/hangout.js?v=1.2". ifr?url=app%3A%2F%2F992346871022%2Fhangout&container=hangout&view=default&lang=all&country=ALL&debu…:1129 Refused to execute script from 'https://talkgadget.google.com/hangouts//api/hangout.js?v=1.2' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. ifr?url=app%3A%2F%2F992346871022%2Fhangout&container=hangout&view=default&lang=all&country=ALL&debu…:1

I verified that my gadget xml file still exists and is publicly accessible, as well as all of the files it references. The MIME type of all my files are set correctly. I can see in the network tab that all of my app's files are downloaded without errors. (none of my files or app settings have changed in over 6 months, yet the app worked fine until recently.)

I also tried using the "Enter a hangout in developer sandbox" link from within the API console to test the app, but this link just takes me to a 404 page now. It used to work last time I tried it (with the same project and my same account). The 404 it sends me to is https://hangoutsapi.talkgadget.google.com/hangouts?authuser=0&gid=992346871022

Has anything changed within the hangout code that can explain why it broke? My users are complaining they can't use my app anymore.

Comment #1

Posted on Nov 19, 2014 by Massive Lion

I have same issue. I cant load my app though I could a month ago.

Comment #2

Posted on Nov 21, 2014 by Helpful Camel

Just change the reference to

https://talkgadget.google.com/hangouts/_/api/hangout.js?v=1.2

with

//plus.google.com/hangouts/_/api/v1/hangout.js

Comment #3

Posted on Nov 22, 2014 by Grumpy Bird

Thanks Hector. You are correct -- this fixed the issue. If Google made a breaking change here it's pretty frustrating that they didn't notify us.

Comment #4

Posted on Nov 22, 2014 by Massive Lion

Thanks!

Comment #5

Posted on Nov 22, 2014 by Massive Lion

And I noticed I cannot enter hangout sandbox, getting 404. The "Enter a hangout in developer sandbox" link's URL seems to be wrong.

https://hangoutsapi.talkgadget.google.com/hangouts?authuser=0&gid=*

should be

https://hangoutsapi.talkgadget.google.com/hangouts/_?authuser=0&gid=*

I can enter sandbox when I enter the URL directly.

Status: New

Labels:
Type-Defect Component-Hangouts