PageSpeed Insights -Showing Error code 429 - pagespeed-insights

I am running my website speed on PageSpeed Insights, but I keep getting Error code 429 'Quota exceeded for quota metric ' even though I have only ran the script once and with one url in it.
Error {
"error": {
"code": 429,
"message": "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'pagespeedonline.googleapis.com' for consumer 'project_number:'.",
"errors": [
Error {
"message": "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'pagespeedonline.googleapis.com' for consumer 'project_number:'.",
"domain": "global",
"reason": "rateLimitExceeded"
}
],
"status": "RESOURCE_EXHAUSTED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "RATE_LIMIT_EXCEEDED",
"domain": "googleapis.com",
"metadata": {
"quota_metric": "pagespeedonline.googleapis.com/default",
"service": "pagespeedonline.googleapis.com",
"quota_limit": "defaultPerMinutePerProject",
"consumer": "projects"
}
}
]
}
}

Related

Google Cloud VM request is missing authentication credential

I recently deployed a Node.js/express application to a Google Cloud Compute VM. How do I send it get requests? I followed the instructions in this article to get my URL. When I curl it from the command line, though, I get a 401 authentication credential error.
Request:
https://compute.googleapis.com/compute/v1/projects/*PROJECT_ID*/zones/*ZONE*/machineTypes/e2-standard-2
I am already logged into the gcloud SDK--is there some kind of other auth I need to network with my VM?
Full Error Message:
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadata": {
"method": "compute.v1.MachineTypesService.Get",
"service": "compute.googleapis.com"
}
}
]
}
}

API 'metadata' is not supported for environment while posting to Azure Time Series Insight

Context: I am trying to post a json content to Azure Time Series Insight, through postman and getting,
{
"error": {
"code": "InvalidInput",
"message": "API 'metadata' is not supported for environment 'xxxxxxxx-1797-xxxx-82xx-639xxxx51af8'."
}
}
While making a "GET" call, I am receiving response,
{
"environments": [
{
"displayName": "perf_lab",
"environmentId": "xxxxxxxx-1797-xxxx-82xx-639xxxx51af8",
"environmentFqdn": "xxxxxxxx-1797-xxxx-82xx-639xxxx51af8.env.timeseries.azure.com",
"resourceId": "/subscriptions/xxxxxxxx-1797-xxxx-82xx-639xxxx51af8/resourcegroups/Rg01/providers/Microsoft.TimeSeriesInsights/environments/perf_lab",
"features": [
"TimeSeriesQuery",
"TimeSeriesModel",
"ColdStore",
"WarmStore"
],
"roles": [
"Reader",
"Contributor"
]
}
]
}
My payload trying for the for POST call,
{
"test_details": [
{
"project_name": "APIM"
},
{
"test_Name": "SimpleLoadTest"
},
{
"test_id": "LoadTest01"
},
{
"test_executer": "Administrator"
}
],
"response_Details": [
{
"requestName": "JSR223 Sampler",
"status": "Success",
"responseTime": 1616,
"responsecode": "200",
"sentBytes": 0,
"receivedBytes": 0,
"responseMessage": "OK",
"samplecount": 1,
"errorCount": 0,
"time": 1596682980831
}
],
"thread_Details": {
"number_vusers": 1
}
}
URL : https://xxxxxxxx-1797-xxxx-82xx-639xxxx51af8.env.timeseries.azure.com/metadata?api-version=2016-12-12
Unfortunately, /metadata endpoint is only available for Azure Time Series Insights Gen1.
If you are trying to access the /metadata endpoint of an Azure Time Series Insights Gen2 environment, it is expected to get such a response:
{
"error": {
"code": "InvalidInput",
"message": "API 'metadata' is not supported for environment 'XX'."
}
}

Gocardless - Redirect flow in Node JS

I'm trying to use Gocardless to enable SEPA payment in my website.
The example in the API doc doesn't work and seems uncomplete
POST https://api.gocardless.com/redirect_flows HTTP/1.1
{
"redirect_flows": {
"description": "Wine boxes",
"session_token": "SESS_wSs0uGYMISxzqOBq",
"success_redirect_url": "https://example.com/pay/confirm",
"prefilled_customer": {
"given_name": "Frank",
"family_name": "Osborne",
"email": "frank.osborne#acmeplc.com"
}
}
}
That's the response I get :
{
"error": {
"message": "not found",
"errors": [
{
"reason": "not_found",
"message": "not found"
}
],
"documentation_url": "https://developer.gocardless.com/api-reference#not_found",
"type": "invalid_api_usage",
"request_id": "7ae43821-345d-4ffd-98d6-15c4fe5513e6",
"code": 404
}
}
How can it work if the access token of the application is never asked for the request ?

Gmail API: Cannot create filters via Google APIs Explorer

I am trying to create filters via the Gmail API
Services > Gmail API v1 > gmail.users.settings.filters.create
Listing and lookup of single filters are working but I am not able to create new filters.
Request
POST https://www.googleapis.com/gmail/v1/users/me/settings/filters?key={YOUR_API_KEY}
{
"criteria": {
"query": "test"
},
"action": {
"addLabelIds": [
"Label_582"
]
}
}
Response
500
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
"Label_582" is valid.
Any ideas?
Thanks and best regards

Error in creating repository in azure using azure cloud plugin?

I created storage account in azure but when i create a repository in azure it is showing error like this.
I given command as
PUT _snapshot/azurerepository
{
"type": "azure"
}
Response
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[azurerepository] can not initialize container elasticsearch-snapshots"
}
],
"type": "repository_verification_exception",
"reason": "[azurerepository] can not initialize container elasticsearch-snapshots",
"caused_by": {
"type": "storage_exception",
"reason": "An unknown failure occurred : Connection refused: connect",
"caused_by": {
"type": "connect_exception",
"reason": "Connection refused: connect"
}
}
},
"status": 500
}
Thanks
This is due to my network connection under some firewall. Once firewall is removed i can to access azure with out any problem.

Resources