gapi.auth.authorize: Error: _.Uu is not a function - google-oauth

My web application started to error out yesterday when calling gapi.auth.authorize, and there is no code change. Below is the error stack:
Error: .Uu is not a function
mk#/scs/apps-static/_/js/k=oz.gapi.en.1gq98XyFUlU.O/m=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTPj42_xcRHRghwn4h4H79TdCPg3pw/cb=gapi.loaded_0:234">https://apis.google.com//scs/apps-static//js/k=oz.gapi.en.1gq98XyFUlU.O/m=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTPj42_xcRHRghwn4h4H79TdCPg3pw/cb=gapi.loaded_0:234
qA#/scs/apps-static//js/k=oz.gapi.en.1gq98XyFUlU.O/m=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTPj42_xcRHRghwn4h4H79TdCPg3pw/cb=gapi.loaded_0:236">https://apis.google.com//scs/apps-static//js/k=oz.gapi.en.1gq98XyFUlU.O/m=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTPj42_xcRHRghwn4h4H79TdCPg3pw/cb=gapi.loaded_0:236
.sk#/scs/apps-static/_/js/k=oz.gapi.en.1gq98XyFUlU.O/m=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTPj42_xcRHRghwn4h4H79TdCPg3pw/cb=gapi.loaded_0:238">https://apis.google.com//scs/apps-static//js/k=oz.gapi.en.1gq98XyFUlU.O/m=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTPj42_xcRHRghwn4h4H79TdCPg3pw/cb=gapi.loaded_0:238
Is anyone seeing the same problem? Not sure if Google is making any changes.

Google broke the JS client yesterday. It's being tracked here https://code.google.com/p/google-api-javascript-client/issues/detail?id=103

Related

VS22 throws errors when I try to start it

Last week I tried to setup a Vue.js Application and import a template in the application.
While doing that I got another problem, so I tried to reinstall VS22 in order to solve it.
When I start VS22 (using Adminrights) it throws this Exception:
It tells that a package couldn't load correctly. Sadly I can't figure out how I could solve this.
What is the cause of this error message?
Activity log:
https://workupload.com/file/r4KTwx3Sc3A

New angular 8 project gives many console errors

I've begun receiving a lot of errors in the console. This didnt impede development on a previous project for a while, but once it started causing premature exits I decided to see what a brand new project gave me. The same errors exist.
Errors:
- Websocket handshake failed: 'Connection' header is missing.
- Invalid host/origin header
- [WDS] Disconnected!
- Uncaught typeError: ___ is not a function
I'm completely at a loss on what to do for these errors, but it doesnt seem to be a code issue. maybe some libs or packages are not playing well?
any insight is helpful!

Unable to resolve module `some-name` from `Path/To/Project/script.js`

I tried to require("some-name"); in my script.js. This gave me the following error:
Unable to resolve module some-name from Path/To/Project/script.js: Module does not exist in the module map.
So I removed the require("some-name"); in the script.js. The same error occurred.
So I went to a previous state of the app. The error keeps happening and there is nowhere in the code that I request the "some-name" file nor I have the file in my directory.
Here an image where I search in my code to the old file name:
The screen shot of the error in react-native.
I tried the steps shown in the error message and it did not resolve the problem.
It is possible to add more information if it is unclear.
The problem is the cache.
This problem was fixed by:
renaming the file where the error came from.
restarting the server.
Due to the file renaming the server took the updated project with out the error. This problem was solved with the help of Nikhil Parmar in this chat.
The error was already fixed in the code but the server still used the cached project. A normal cache clear and server restart did not work.

EPIPE error uploading img to s3 using imagesquish

I've been testing imagesquish for a while and I can't seem to have it working.
It works with node.js, forever, express and knox and basically does image processing on the fly.
I'm trying to call an image on a server, it resizes, crops or whatever and then uploads to s3.
I've had permission issues but after creating a new s3 bucket, it seems I made some progress but then, the image doesn't get uploaded and I can't get any error.
I managed to go through it's code and go all the way to exports.uploadImage that would call img.toBuffer but apparently it doesn't get called.
At the end, I get the error:
events.js:72
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at errnoException (net.js:904:11)
at Object.afterWrite (net.js:720:19)
error: Forever detected script exited with code: 8
error: Script restart attempt #1
I need some help on this. Does anybody have any idea?
Luis. Not sure if you're still interested in an answer to this. I'm the author of ImageSquish. From the information you provide, this sounds like img.toBuffer is failing which is usually because graphicsmagick is not installed. The latest version of ImageSquish checks for the existence of this library on startup (see https://github.com/dmcquay/imagesquish/blob/master/check.js).
You might also find it easier to try it out using docker (https://registry.hub.docker.com/u/dmcquay/imagesquish/) so you don't have to worry about installing anything.
If this doesn't resolve your problem, you can find me via irc on freenode #imagesquish.

Browser Console full of errors in IceFaces 3.3.0

As the title says, my browser console is really full of errors some of which are as follows:
Error: ReferenceError: css_ims is not defined
Error: TypeError: br.log is undefined
Error: TypeError: window.ice.onLoad is not a function
Error: TypeError: ice.captureSubmit is not a function
Error: TypeError: ice.setupBridge is not a function
Error: TypeError: ice.push is undefined
Error: TypeError: ice.captureSubmit is not a function
Error: TypeError: ice.onBeforeSubmit is not a function
And guys let me also tell you about the Icefaces version I used:
1. icefaces-3.3.0.jar
2. icefaces-ace-3.3.0.jar
3. icefaces-compat-3.3.0.jar
4. icefaces-mobi-1.2.0.jar
5. icepush-3.3.0.jar
Prior to the use of these 3.3.0 versions and icefaces-mobi-1.2.0.jar I was using 3.0.1 versions and no use of icefaces-mobi-1.2.0.jar in which the browser console was having none of the above mentioned errors. So I was thinking this might be the compatibility issue.
(Note:Here the icefaces mobi jar is used for Mobile related things.)
Thanks in advance. Any help would greatly be appreciated! :)
I'm not sure if adding ICEmobile is causing these JavaScript errors, but ICEmobile 1.2.0 is designed to be used with ICEfaces 3.2.0. For ICEfaces 3.3.0 you should use ICEmobile 1.3.0. Also be sure to clear your browser cache before retrying.
Those errors occurs because all/some icefaces javascript files are not downloaded to the client.
I faced this problem: I investigated this issue using firebug(firefox plug-in) and I found that all resources URL which includes (javax.faces.resource) are giving 302 response error which means that the request is redirected.
I double check and found that I have (javax.servlet.Filter) called AuthenticationFilter which filters all the requests, and if the user doesn't login all requests are redirected to the login page.
To solve this issue: in AuthenticationFilter.doFilter(ServletRequest request, ServletResponse response,FilterChain chain)
I added the if statement:
if (path.contains("javax.faces.resource") || path.contains("/css") || path.contains("/images") || path.contains("/js")) {
chain.doFilter(request, response); // Just continue chain.
return;
}