Google Cloud Speech API- Permission Error - google-cloud-speech

The API is already enabled in console still getting this error.
data:{
error:{
code:403,
message:'Cloud Speech API has not been used in project ************ before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/speech.googleapis.com/overview?project=************ then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
status:'PERMISSION_DENIED',
details:[
Array
]
}
}

Just not to leave the question unanswered. According the comment on Nov 21st, disabling and enabling the API solved the issue.

Related

iOS: Google Places Pod - reached usage limit error after upgrade pod version to 3.1.0

Google recomments to upgrade the iOS Google Places Pod from 2.7.0 to 3.1.0.
Version 2.7.0 of the Places SDK for iOS is deprecated as of January 29, 2019, and will be turned off on July 29, 2019
I upgraded my pod and now I run into the following issue.
The operation couldn’t be completed. Operation failed due to exceeding the quota usage limit. See the usage limits guide (https://developers.google.com/places/ios-sdk/usage) for information on usage limits and how to request a higher limit.
When I downgrade the version again to 2.7.0 everything works fine with the same API Key.
My limits are 1000 requests per day and I didn't reach them yet.
It is in german but you can see I had 142 requests in the last 7 days.
A confusing thing is that when I use
placesClient?.currentPlace(callback: { (placeLikelihoodList, error) -> Void in ...
I got my current place. When I want to use find autocomplete I'm restricted.
placesClient?.findAutocompletePredictions(fromQuery: searchText, bounds: nil, boundsMode: .bias, filter: nil, sessionToken: token, callback: { (gmsAutocompletePrediction, error) in
if let error = error {
print(error.localizedDescription) // limit reached error
}
})
Do I overlook something? What else can I do? I can not imagine that the error lies with the pod.
Similar questions which not helped:
Google Places AutoComplete on iOS - Can't Load Search Results - Try Again
I experienced the same problem. Was trying to implement the New Places API from Google to replace the old SDK's Place Picker. After one or two successful calls per day I always started getting the following error:
An error occurred: The operation couldn’t be completed. Operation
failed due to exceeding the quota usage limit. See the usage limits
guide (https://developers.google.com/places/ios-sdk/usage) for
information on usage limits and how to request a higher limit.
I had the Places API enabled in the console and also enabled billing with a valid credit card. Was still getting this error.
The solution was to enable Maps SDK for iOS from the Google Cloud Platform. After that I had no limits to the requests and was getting results every time. Hope that helps someone.
The same thing just happened to me. You need to increase your quota limit
The google's developer console is HORRIBLY laid out. Going to that link you might or might not find anything to actually increase the quota. On the Credentials you'll see a blue button that says "increase quota" or "request increase", it's something along the lines of this
Assuming you already setup billing, once you increase the quota you won't have any more problems.

GooglePlaceAPI error: -6 in iOS

after working with autocomplete UI Control https://developers.google.com/places/ios-api/ i got error in XCODE console when i am going to search in search bar that Google provide.
I have use Google Maps frameworks with use of pods.
Error :
error : -6
Set accountToAuthorizerBlock to be able to send authorized requests.
I'm an engineer on the Places API for iOS team. This is an internal log message that was printed by mistake. It shouldn't actually affect the functionality of your app and it's fine to ignore it.

Did Facebook recently disable accessing public page feeds via uri?

This worked in my iOS app just yesterday, it's worked for months. I wake up today and no bueno. I put this into the address bar of my web browser with the desired ID and now I'm getting "Sorry, this page isn't available." Anyone know what's up?
NSString *urlString = [NSString stringWithFormat:#"https://www.facebook.com/feeds/page.php?format=json&id=%#", pageId];
same here i think there is a lot of people if you can find work around do tell please
Update
The Pages JSON feed (e.g. https://www.facebook.com/feeds/page.php?id=%2019292868552&format=json) is now deprecated and will stop returning data from Jan 28, 2015 onwards. Developers should instead call the feed edge on the Graph API's Page object: /v2.2/{page_id}/feed.
Source
Though I can't find a way to access a feed without authentification ! Facebook is becoming more and more liberty killer and is withdrawing into himself !

Sync with Couchbase Lite through Couchbase Sync Gateway doesn’t see any documents (Channel issue?)

I’m trying to sync a Couchbase bucket from the server to an iOS app using the Couchbase Sync Gateway and Couchbase Lite for iOS.
So far I’m working with the "beer-sample" example bucket that comes with Couchbase.
On my Ubuntu 12.04 LTS VM, the Couchbase Sync Gateway is started with this config file:
{
"interface":":4984",
"adminInterface":":4985",
"log":["REST"],
"databases":{
"sync_gateway":{
"server":"http://localhost:8091",
"bucket":"beer-sample",
"sync":`function(doc) {channel(["public"]);}`,
"users": {
"GUEST": {"disabled": false, "admin_channels": ["public"]}
}
}
}
}
My intention is to get it running without worrying about authentication first, therefore the GUEST user.
I’ve also modified some example to make sure the channel assignment is not dependent on the documents, because the sample bucket doesn’t have any channel assignment:
"sync":`function(doc) {channel(["public"]);}`,
I included some code from https://github.com/couchbaselabs/ToDoLite-iOS/blob/master/TodoLite7/CBLSyncManager.m into my own example project, and after a bit of trying the iOS can actually connect to the connector.
The NSLog in line 168 gives me this output:
[1026:60b] SYNCMGR: active=0; status=1; 0/0; (null)
[1026:60b] SYNCMGR: active=1; status=3; 0/0; (null)
[1026:60b] SYNCMGR: active=0; status=2; 0/0; (null)
…and my interpretation of that is that the syncing (of 0 documents) was working successfully.
Why does the Couchbase Sync Gateway not report any documents to Couchbase Lite? I’m obviously missing something. I suspect the channels are not setup correctly.
Any help will be appreciated and if your answer solves my problem, I will accept it.
as this was re-posted from our communities portal, I will close out this issue here with a re-post in response and continued questions should be on our communities portal.
Based on your description of the issue and configuration, you still need to configure your Sync Gateway to let it know there is an existing Couchbase Server bucket it needs to sync from.
This is a recent feature add after our Beta 2; we're currently working on the documentation, which is available interim here: https://github.com/couchbase/sync_gateway/wiki/Bucket-Shadowing
Continued thread can be found here: http://www.couchbase.com/communities/q-and-a/sync-couchbase-lite-through-couchbase-sync-gateway-doesn%E2%80%99t-see-any-documents-channel-issue

Google Analytics not tracking events in HTML5 mobile app properly on iPhones

We are using Google Analytics to track events, but events don't appear to track 100% of the time. Sometimes they track, and sometimes they don't. We're not exceeding quota limits per session (at most we have 20 events per session). That shouldn't be the issue.
The tracking fails to work consistently on our normal website as well as our HTML5 mobile app version, though it's far less reliable with the HTML5 mobile app version.
Code:
var share_url = 'http://twitter.com/intent/tweet?text=';
// Log in GA
_gaq.push( ['_trackEvent', 'Share Twitter', ''] );
// Open URL in browser
open_external( share_url + encodeURIComponent( msg ) );
function open_external( url ) {
window.open( url + '#phonegap=external' );
}
_gaq.push( ['_trackEvent', 'Share Twitter', ''] );
This won't do anything.
For _trackEvent, the third argument (where you pass an empty string) is required. It's the 'Action' parameter. But an empty string is falsey, so it just fails silently.
Pass any value there, and it'll work.
Is this a reduced case? You shouldn't be seeing any events with that code.
Are you positive that you waited long enough for the data to be processed by Google? Especially since some tracking seems to be working.
I had the same behaviour (in a mobile app btw) but after waiting for more than a day it still came through. This still occurs on a daily basis... Hope this is the case for you too.
I'm not exactly sure what your problem can be, so I will throw some idea.
Most of them are obvious but it might help.
On your website:
Are you sure your embed the Google Analytics code snippet on every page who required tracking?
Load Google analytics from the asynchronous way.
On Google analytics check on Real time > Overview. As full report are delayed from few hours.
If you url is something like httq://localhost/ then your need to add the javascript code _gaq.push(['_setDomainName', 'none']); please read this post
It can't work with file:// url
(Probably not) Check if you can download the JavaScript from Google Analytics. Maybe your proxy block Google analytics tracking ?
In your application:
You are using embedded HTML 5 page within your app. So the way your open a page is using file://PATH_TO_MY_DIR/index.html as it's on your hard drive you can't send data to Google analytics.
As you are probably using PhoneGap, you need to "jump out" of your HTML page into native Objective-c code and send the event from your Objective-C code. Read Google Analytics and PhoneGap and this google group thread
Hope it help.
The problem is third parameter in:
_gaq.push( ['_trackEvent', 'Share Twitter', ''] );
The 2nd element of the array should be the category and the 3rd should be the action. For example:
_gaq.push( ['_trackEvent', 'Share', 'Twitter'] );
You can verify this yourself by pasting each of the above into your developer console (F12 in Chrome, Ctrl-Shift-K in Firefox) and watching the network traffic.
Reference:
https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiEventTracking

Resources