Google Places API Address search - google-places-api

I The example given on [PlaceAutocomleteAddressSearch][1] is not working for me.
I am getting 2 errors getting an Uncaught fc Tg error in the console
looks to be in line 97. error text is
throw _.gc(a+" is not a function");return function(){c.apply(d)}};
[1]:
the other error is cannot read property 'setBounds' of undefined.
I am using the exact same code as in the example so I don't get what is wrong.
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

I found the problem since I am checking this on localhost, geolocation is disabled as of march 2016, so the geolocate example will not work since the browser doesn't support navigator geolocation if the site is not using https.

Related

AWS Lambda: Calling the invoke API action failed with this message: [object Object]

This question has a few more details, in addition to the report here: AWS Lambda: Calling the Invoke API failed with message: [object Object]
When I try to invoke my Lambda function, by clicking on "Test" button, I see the error reported.
Issue seen on browser: Firefox Nightly 64.0a1 (2018-10-15) (64-bit), on a Windows 10 system.In the browser console, I see this error:
TypeError: asm.js type error: Disabled by 'asmjs' runtime option rusha.min.js
In the Network tab, of the Firefox dev-tools, I see that the invocation returns with a 403 error. The response is :
{"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."}
Everything works as expected on Microsoft Edge, and Chrome browsers.
Asm might be a red herring, but I can believe AWS might well be using it to speed up their signing. This fits, as the error you're seeing occurs when you try to do something on the AWS Api without the v4 signature being correct.
I notice you're using a nightly build of firefox, so you might well be subject to a known bug &c, or asm.js might be disabled for that platform.
Following the error, I suggest you try going to about:config (to change your firefox configuration), and set javascript.options.asmjs to true.
Failing that, you might have to get off the nightly build or raise a bug report.
This was an issue / bug, that has since been fixed in Firefox Nightly (and should flow into Firefox standard release).
The details of the issue are here: https://bugzilla.mozilla.org/show_bug.cgi?id=1499136
In Firefox's about:config, the key
dom.xhr.standard_content_type_normalization is now set to false by default.

Google picker does not work without filter being applied for some users

we have an integrated with google picker(read-only scope,Docs view) it use to work fine but recently some users are getting blank screens as soon as the pop up shows but when they select some filter everything starts working fine after that no problems.
using developer tools i see all apis returning 200 for that first request
but there were no docs in response(i believe this is the api responsible for bringing docs in picker 'https://docs.google.com/picker/pvr')
when there are no docs returned in above api google is calling another api i assume it is to log error's probably(//docs.google.com/picker/ohnoes)
this api has following error params in it
&error=Cached and requested query mismatch
&line=Not available
&viewToken=["all",null,{"query":null}]
&ms=97
&transferDocs=false
&numErrors=1
has anybody else faced the similar problem
what do error "Cached and requested query mismatch" means in context of drive docs
Fyi - most accounts facing this problem seems like are of company domain for ex "jondoe#company.org"(this is a google account with company domain)
Filters Image
Thanks for your help.
not sure but looks like issue was may be related to google bug
https://issuetracker.google.com/issues/64825685
for me the code that was not working was:
addView(google.picker.ViewId.DOCS)
replaced this code with below code which works as expected
var view = new google.picker.DocsView();
view.setIncludeFolders(true).setOwnedByMe(true).setParent('root');
addView(view).

jxmaps giving error while showing map

I am getting error while showing Google maps on my Java swing application with Jxmaps.
It shows me
"Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details."
message on my map component.
Is there anyone to help me?
This error can be caused by missing or incorrect API KEY. Google Maps allows limited number of requests per day without API KEY.
Have you set it in JxMaps? You can do it with followed code:
MapViewOptions options = new MapViewOptions();
options.setApiKey("<YOUR_API_KEY>");
MapView view = new MapView(options);
More detailed information about Google Maps API keys you can find here: https://developers.google.com/maps/pricing-and-plans/

Error from Yammer feed embed: Uncaught SyntaxError: Invalid regular expression

I recently embedded a feed on one of our SharePoint pages. The feed worked fine 2 days ago but today i get the following error:
Uncaught SyntaxError: Invalid regular expression: /^[^Ö-׿؀-Û¿Ý-ݿࢠ-ࣿï¬-ï­ï­-ï·¿ï¹°-]*[A-Za-zÀ-ÖØ-öø-ʸ̀-Öà €-á¿¿â°€-﬜︀-﹯﻽-ï¿¿]/: Range out of order in character class
The error seems to occur at:
https://s0.assets-yammer.com/assets/yam-platform-feed-9bcb8d2f0391f8bdbf6bb270b9167e88.js line 57
Additional information:
This error only happen with this specific Yammer group
The error doesn't occur in other groups i tested it with
The Yammer Embed script is as is provided by Yammer (the network and group-id are changed)
Tested in both IE10/11 and Chrome 49.0.2623.112
Screenshot from Chrome Developer Tools
Can anyone with help with this problem?

Ported Chrome extension to Firefox not working (indexedDB error)

I'm trying to port the Twitter Notifier extension to FF.
I'm not too familiar with JavaScript so I just used extension factory to convert it to FF.
Unfortunately it is not working; I don't get any HTML5 desktop notifications.
I've looked at the code a bit and I think the problem is with twitter.js which should be found in the path 'resources\extension-data\js'.
http://pastebin.com/C0NqU4Ur
First I've changed
twitter.messagesDB = window.webkitIndexedDB.open("messagesDB");
to
twitter.messagesDB = window.mozIndexedDB.open("messagesDB");
but it still is not working.
The error console also doesn't show any error.
When I put a console.log command to the twitter.messagesDB.onsuccess function nothing is being outputted to the error console.
Also no output when I create an onerror function.
So I though to surround the functions with a try and catch clause but no error is being thrown.
So I tried to put twitter.messagesDB = twitter.messagesDB.result; out of the function and the following error shows up in the error console:
Error: uncaught exception: [Exception... "A mutation operation was attempted on a database that did not allow mutations." code: "6" nsresult: "0x80660006 (NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR)" location: "chrome-extension://gjlehiopfilnaggndcmbhphaglkbkekf/js/twitter.js Line: 28"]
What does that mean?
How can I make it work in Firefox?
Thanks in advance!
Edit: I'm using Firefox 12 on Windows
This is due to an incompatibility between the Firefox implementation of IndexedDB, which supports the latest IndedexDB protocol published December 2011, and the Chrome implementation, which supports the version previous to that.
The breaking change is how databases are created, where the older (Chrome) implementation uses the setVersion transaction whereas the newer version (FF) uses an onupgradeneeded event and callback.
To see this change, please star this issue.

Resources