Actions Google Simulator not working - firebase

5I'm creating a google actions for Google Home, i'm using dialogflow and firebase functions and database to create the all thing.
So far everything was working good together but yesterday an error occured that i dont understand.
When i want to test my agent on the Simulator section of Google Actions, the agent is not responding even if in the logs i can see that the response is actually received by the simulator as shown here
And it answer this in the simulator
The response is empty and i have this simple error in the Debug section
It worked perfectly before but i may have change one thing that crashed everything and i can't find it.
EDIT
As recommended by #Prisoner, i've checked the History to find this
So i checked the logs and i got this (after Dialogflow Request and Dialogflow fulfillment request who were looking good)
It seems that the Dialogflow fulfillement response is having problem with URL ???
EDIT2
My URL fulfillment (firebase functions) was wrong, now that i have changed it, the log in my History seems ok :
But i'm always getting the same error on the Simulator.

Your logs show that your fulfillment is not deployed correctly and the URL is pointing to a HTML 404 page. This will cause your app to stop responding.

You may be running into the recent "first TTS is not spoken" bug in the simulator. I suggest changing your surface to speaker instead of phone. You can read more about this here.

Related

Events not logged in firebase console

I just don't know what to do anymore. I have a React-Native app and I'm trying to use Firebase Analytics to log Events in the app. I'v followed the entire installation of https://rnfirebase.io/ and https://rnfirebase.io/analytics/usage. Having done that I'v tried to log an Event but I can't see it in Firebase.
What left me completely baffled is that activating the app for Debug View mode with -FIRDebugEnabled in XCode worked. I could send an Event on the app and see it on the Debug View console in Firebase. When I deactivated the Debug mode WITHOUT ANY CHANGE only -FIRDebugDisabled in XCode the app did not send any Events to the Events console. I don't get any error there is no way to know what is happening. I have no idea of what I need to do or how to fix it.
Maybe some configuration inside the GoogleServices-Info.plist? Something inside the Scheme in XCode?
What should I do?
EDIT: I´v read a lot of answers here. Just to clarify the Events names are not a problem (no spaces or more than 40 chars) and I´v filtered Today and all posibles filters.
Unlike the DebugView, Firebase doesn’t display data in real time. There’s an intended delay before the analytics data is logged on your Analytics dashboard. The initial data logged usually takes up to 24 hours to display and 3-4 hours delay for the succeeding data. For additional information about it, you can refer to this blog post.

This API project is not authorized to use this API - using geocode in R

I've been looking all the answers to this same question, but the solutions seem to be too old or not working...
I am using geocode from the ggmap library in R, I am using it to transform 100,000 addresses to a latitude and longitude...
Everything was working fine for 25,000 and suddenly I started getting the message
"This API project is not authorized to use this API" and now I'm unable to do anything anymore.
I enabled the geocoding API and the google cloud APIs in the google cloud platform..
I also changed the API key, it first said my key expired but after a while it started saying "This API project is not authorized to use this API" again..
As an additional note, my billing method is enabled and working fine
Why do you think this is happening? How to solve it?
well, after an hour or so it seems that it started working again... I assume considering that enabling the geocoding API was the only actual action I did and changing the API key, the only conclusion is that after you do that it's important to wait until all the changes are propagated or something.

LinkedIn Javascript SDK authorize stopped working

I have a LinkedIn integration using their SDK and use the method authorize to request permission from the user to post in her/his behalf. It was working fine but today I noticed that it stopped working. The issue is that the callbackFunction (see https://developer.linkedin.com/docs/getting-started-js-sdk) never gets called, so I don't know when the user grants permission or not.
I was checking and noticed that the file: https://platform.linkedin.com/in.js now redirects to https://platform.linkedin.com/xdoor/scripts/in.js. I took a look at https://web.archive.org/web/*/https://platform.linkedin.com/in.js and it seems that it changed around November the 13th.
Have you had any problems with the SDK recently?

Connecting to Youtube Analytics API using R

I am trying to pull data from Youtube Analytics API using R and have hit a wall. I'm getting a Status 403 error. I can confirm that:
I have tried logging out of all accounts, rebooting, re-authenticating and then logging into 1 account and it didn't work
I have tried using just the https://www.googleapis.com/auth/youtube.readonly scope (which is supposed to be correct) and all youtube analytics scopes are authorized within the app (each with their own credential key), it didn't work.
I have tried authenticating from different browsers, it didn't work
I can confirm that the call worked from https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v2/youtubeAnalytics.reports.query.
UPDATE
I have found the solution and updated the code to what is now working
scopes<- c('https://www.googleapis.com/auth/youtube.readonly')
endpoint<- oauth_endpoints('google')
youtubeapp<- oauth_app(appname='Youtube Analytics API',
key=client_id,
secret=client_secret)
youtube_token<- oauth2.0_token(
endpoint= oauth_endpoints('google'),
app = youtubeapp,
scope = scopes)
raw_data<- GET(paste("https://youtubeanalytics.googleapis.com/v2/reports?dimensions=",dimensions,"&endDate=",enddate,"&ids=",ids,"&metrics=",metrics,"&startDate=",startdate,sep=""),
config=youtube_token,content_type('application/json'))
content(raw_data, as= 'text')
I have figured out that access permissions are dictated by Youtube (not API IAM), so for example even though my personal email is owner of Brand account and API I still need to authenticate the call using the Brand Account or it won't work (I get 403 error for personal email). I tried switching my Youtube channel from Brand to personal and then my personal email worked. However, I need it under the brand account, so I have switched back.
I will leave this code up regardless because I found that good examples using R were lacking, I hope you find this useful.

Facebook Open Graph follow action provokes an error when uses Open Grahp Test User as a profile

I'm developing a web application in php that uses CURL calls to Facebook Open Graph with an authorization token.
I'm implementing calls to follow action and it runs fine with the test users profiles, but it provokes an error message when it uses Open Graph Test User as a profile.
The message is the following:
{"error":{"message":"(#100) Could not resolve object at URL 100004155724366.","type":"OAuthException","code":100}}
This happened using both the Open Graph Test User as the follower and as the followed.
I find information about this bug here, but it doesn't solve the problem.
I receive reject messages from Facebook when I send it to Review because the Open Graph Test User fails, despite I let them know about this issue.
Is there a way to execute this follow action via CURL, using Open Graph Test User without errors?
I very much appreciate your help. This thing is getting me nuts.
I faced the same issue as you did and filed a bug with Facebook: https://developers.facebook.com/bugs/1509327415958565
Facebook was able to reproduce this issue and are mentioning it appears to be a bug and assigned this task to the appropriate team.
Edit:
It turns out this behavior is by design when a test user is following a real user. FB recommends for testing to use 2 test users and let one test user follow the other test user.

Resources