Unable to add Tasks to any Lists - Quota Exceeded Error - google-tasks-api

I have recently encountered a problem with adding new tasks to Google-Tasks.
Both the Google Calendar integration (in any browser) and the Google Tasks App (on Android - Galaxy S9+) report an error whenever I try to add a new task.
On Google Calendar I get the error message:
"Reverting to the latest state because there was a problem."
On the Google Tasks App I get the error message:
"Unknown Server Error. Please try again later"
neither of which is very informative about how to solve the problem.
I did some further investigation via the Google-Tasks-API and found that I can still delete and modify tasks, but whenever I try to insert a new task into a list I get the following 403 error message from the API:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "quotaExceeded",
"message": "Quota Exceeded"
}
],
"code": 403,
"message": "Quota Exceeded"
}
}
However, I checked my Google-Tasks API quotas at:
https://console.developers.google.com/iam-admin/quotas
and I don't seem to be anywhere near any of the usages limits, so I don't really understand why I am getting this error message.
I've been using Google Tasks successfully for several years, including using the Google-Tasks-API to manage bulk updates, but have not changed any of my set-up recently. Is it possible I have stumbled into some global limit on the number of tasks permitted, or a limit on the number of tasks per list? I do have quite a lot of long-running tasks (I have a list to track dev ideas for some software that I maintain).
Any help would be greatly appreciated as I use Google Tasks to organise almost every aspect of my work-life and being without this is rather disruptive to my productivity.
It is rather frustrating that this issue seems to be affecting my normal day-to-day use of Google Calendar Tasks and the Google-Tasks App (I could have coped if it were just my script that uses the API that was not working).

Related

Serverless Watson Deployment? (Questions about integrations with other RESTful services)

Introduction:
I feel like I'm missing something terribly obvious about how Watson Assistant should be designed at an architecture level, but maybe I'm not.
The specific problem I'm having is that I can't seem to get API calls for information back into the conversation.
The bigger issue is that I'm not sure I setting this all up correctly for the long-haul of what I'm trying to accomplish.
Purpose:
I am building a 24/7 customer-service Tier 1 helpdesk for our managed networks. A user of one of our networks should, via SMS, Web chat, Facebook messenger, and eventually phone call, be able to ask for:
Instructions on how to connect their specific device (PC, Mac, Chromebook, Xbox, Apple TV, etc.)
Ask for help troubleshooting if the instructions don't result in a successful connection. (Step by step instructions for deleting the saved network, restarting the wireless card, etc.)
Help creating a case - at which point the conversation becomes Watson asking for a bunch of information, like what time and date they first experienced the problem, any other times/dates they experienced the problem, their MAC address, etc. etc.
Problems:
I have most of the dialog built and working well. Getting information via Entities, saving to context variables, spitting them back out to make the conversation work, digressions, etc. all working.
I cannot, for the life of me, figure out what I am doing wrong when trying to GET information from an external API.
We have a 'daily password' for our guest networks, and we would like a user who asks for the daily password to receive it. This involves a very simple GET request to a publicly accessible server.
I have built a BlueMix/IBM Cloud function that works perfectly, but I can't seem to successfully call or receive information back from it.
Watson Error:
Error when updating output with output of dialog node id [node_66_xxxxxxxxxx]. Node output is [{"text":{"values":["Today's password for <? $guestNetwork.ssid ?> is <? $guestNetwork.password ?>"],"selection_policy":"sequential"}}] SpEL evaluation error: Expression [ $guestNetwork.ssid ] converted to [ context['guestNetwork'].ssid ] at position 0: EL1007E: Property or field 'ssid' cannot be found on null (and there is 1 more error in the log)
This error leads me to believe I am not properly defining the result variable in Watson, or improperly trying to retrieve it in conversation - because I do know my code returns the SSID and Password when I run it in BlueMix Console.
JSON for the action itself (and yes, I am setting the credentials in the previous node):
{
"output": {
"text": {
"values": [
"Today's password for <? $guestNetwork.ssid ?> is <? $guestNetwork.psk ?>"
],
"selection_policy": "sequential"
}
},
"actions": [
{
"name": "get-http-resource/getGuestNetworkPassword",
"type": "server",
"credentials": "$private.myCredentials",
"result_variable": "$guestNetwork"
}
]
}
Question:
Is my idea of a 'serverless' Watson possible by using Watson <-> IBM Cloud <-> external services? We don't currently have an 'application' or a server, it's all integrations between existing services.
Can anyone help me understand what I'm doing wrong when trying to access that variable?
Bonus points: How do I know to access the variable only after the action has completed successfully in IBM cloud? Basically, if accessing the information via the IBM Cloud function I wrote takes 1.5 seconds, do I need to pause the dialog for 1.5 seconds? Or am I completely missing the point for how to get external info in and out of Watson?
EDIT:
After watching Mitch's video, I have changed a couple things around, and the error message has evolved to this:
"Error when updating output with output of dialog node id
[node_66_1533646714776]. Node output is [{"text":{"values":["Today's
password for is "],"selection_policy":"sequential"}}] SpEL evaluation error:
Expression [ $guestNetwork['ssid'] ] converted to [
context['guestNetwork']['ssid'] ] at position 24: EL1012E: Cannot
index into a null value" error.
Without seeing your dialog, its a guess, but most common error I see is that you just need to jump to a child dialog node after doing the action call. You cannot do the action call and show the response in the same dialog node, as dialog needs a chance to run the action.
Its outlined in my video here:
https://ibm-dte.mybluemix.net/ibm-watson-assistant?refresh
see the video on dialog callouts. Its 13 minutes long I'm sure you only need about 2 of them, but still, should help.
What you are trying to do is definitely possible, especially if it works from within the cloud function environment.
We re-created the action using the default package (not having it in a sub-package), and it started working immediately.
Things to note: Watson dialog editor does not like dashes in the package name.
Thanks Mitch!

youtube reporting api Internal error encountered., youtube-analytics-api

I use the youtube bulk reports (youtube analytics and reporting api) and get few of the reports on a daily basis , by first listing the reports available for the jobs I have defined and then downloading. The API call made to list the reports available "https://youtubereporting.googleapis.com/v1/jobs/{jobId}/reports" is consistently giving 500, Internal error for the whole day ( 5/14/2017) , where as the query to list jobs does give the required list of jobs (https://youtubereporting.googleapis.com/v1/jobs). I have tried this from my code which has been working for past several months as well as from the Oath Playground tool.
Questions
(a) How does one get more information when this happens, the error in documentation just asks to try later
(b) Is there a place we can see the status of youtube-analytics-api health, so that we know there is a production issue , if any

Adapting Page Post Queries from Facebook API 2.5 -> 2.7

I'm currently grabbing post-level insights from my FB page 2.5 for a dashboard to see how well recent posts are doing; a simple benchmark/performance manager dashboard that does all the querying on the front-end [js api].
The calls/procedure I used to use:
1) Get my posts
[page_id]/posts
2) Then loop them and pull the post data from two synchronous calls
// A) gets all the metrics
[page_post_id]/insights
// B) gets other data critical for front-end display
[page_post_id]/?fields=type,created_time,permalink_url
This works perfectly, and for as far as FB says, it will work until June 2018 (I think).
My problem is that the call for step 2-A fails because I believe it requires a separate call for each metric.
That 2-A call returns:
{
"error": {
"message": "Invalid query",
"type": "OAuthException",
"code": 3001,
"error_subcode": 1504028,
"is_transient": false,
"error_user_title": "No Metric Specified",
"error_user_msg": "No metric was specified to be fetched. Please specify one or more metrics to be fetched and try again.",
"fbtrace_id": "XXXXXXXXX"
}
}
Am I wrong?
Is there something that could be done better or would I need to call each metric independently?
I'll eventually need to get there in 2 years but better to address it early and get my teeth on that fresh, new data.
Thanks in advance everyone!
Cheers!
I used a similar setup in Python and ran into the same issue.I've discovered that the {metric} parameter can actually be an array of values.
In Facebook's Graph Explorer I managed to get multiple metrics in one call using this syntax:
<post_id>/insights/["post_stories","post_storytellers"]
You can add additional metrics to the array as needed.
As far as I can tell this feature is not (properly) documented in the Graph API documentation pages, so I'm not sure this usage is intended or not.

Live SDK - server_internal_error - message - An error occurred while retrieving the resource. Try again later

Currently it looks like the lice SDK returns error 500 for all request. Also the interactive SDK Microsoft provides here returns the same error:
http://isdk.dev.live.com/dev/isdk/ISDK.aspx?category=scenarioGroup_core_concepts&index=1
My application work without any changes for over 24 months. Has someone any more details or a workaround?
Update: I tried the following API calls both with the same result:
https://apis.live.net/v5.0/me?access_token=#Token#
https://apis.live.net/v5.0/me/picture?access_token=#Token#
Finally, and after a very long downtime (more than 20 hours) the Live API is up & running again.
Unfortunately, there is not even an official announcement from Microsoft.
Up & Running
Have the same problem and all of my apps worked before for very long time.
I'm using LiveSDK 5.6 and getting successful response for LiveAuthClient.LoginAsync with the following scopes: "wl.signin", "wl.basic", "wl.contacts_photos", "wl.contacts_skydrive",
"wl.skydrive_update"
LoginAsync returns LiveLoginResult object where:
Status = Connected
Session = {Microsoft.Live.LiveConnectSession} with AccessToken
but when app trying to call
Session (LiveConnectClient) object with GetAsync ("/me")
I'm getting the following exception
[Microsoft.Live.LiveConnectException] = {"An error occurred while retrieving the resource. Try again later."}
ErrorCode = "server_internal_error"
The OneDrive service experienced a service outage on the 9th, you can see from this 3rd party site for an idea of the timeline. We did not communicate this issue well to you and other developers that have come to expect excellence from OneDrive.
It is the start of a long weekend and I do not have more answers for you at this time, I'll circle back next week with better details on what to do in the future.
The Live Connect API that the LiveSDK works in conjunction with has been replaced by the OneDrive API, which also has SDKs for most major platforms. You will see major performance improvements and a larger feature set such as a modern sync API available for you with this new API if you transition to it.

Facebook Test User error

I use facebook login in my app and have tests for it. I use the /{app-id}/accounts/test-users endpoint to create users for my tests but the endpoint fails with the very generic
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1
}
}
(which says the API is possibly down). I tried this with 3 different appids/secrets, both with using app_id|app_secret as the token and with a token from the get token endpoint. I also tested this on the Graph Api Explorer and it's giving me the same error. It was working fine but then it suddenly stopped.
What I want to know is 1. is it down? and 2. if not, what did i do wrong or what changed since yesterday?
+1 this also started to me yesterday mid-morning, with code and an FB app which had been working previously and was unchanged.
When I look at https://developers.facebook.com/apps/FB_APP_ID/roles/test-users/, I can see the new users.
So the call is "working" in that new users are being created, but it is broken in that we get a 500 and we don't get an access_token.
I don't have an answer yet.
I ran into a similar problem last week. After long hours of debugging I found out that I would get this same error every time I tried to create multiple test users with the same name simultaneously (i.e. when running tests in multiple threads).
So instead of setting custom a user name I don't even use the name field and I just let Facebook generate one. This way everything works fine. Seriously. I love Facebook API so much. :)
Hope this helps someone.