Any patch request to Google Groupssettings API gives an error 503 - google-admin-sdk

Since a few days back, we keep getting this error when trying any patch request to the Groupssettings API. It happens every time, and not sporadically which would often be the case with backend errors. Are there issues with the API? It worked before the weekend, and has done for some time before this... I get the same result through our code and through the "Try it now!" on the developer reference page: https://developers.google.com/admin-sdk/groups-settings/v1/reference/groups/patch#try-it
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "A system error has occurred"
}
],
"code": 503,
"message": "A system error has occurred"
}
}

Related

Postman: request failing with CORS:ORIGIN_NOT_ALLOWED

I am trying to access API with a POST request, but it's failing with an error. How do I resolve it?
{
"code": 403,
"reason": "Forbidden",
"description": "The server understood the request but refuses to authorize it.",
"message": "CORS:ORIGIN_NOT_ALLOWED:chrome-extension://aicmkgpgakddgnaphhhpliifpcfhicfo"
}

Getting the following error when tried to deploy node js app on Google Cloud

This is my first time using Google Cloud and I tried to send it. As per the tutorial on YouTube, I have a app.yaml file which looks like this:
runtime: nodejs
env: flex
When I ran gcloud app deeply, it failed. In the terminal, there was an error, and it told me to go to this page for the full details, and here is what the page gave me:
{
"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"
}
}
PS: I am not trying to do any google authentication on my website.
Here is what I got in my terminal, it is a bit messy:
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/turing-problems/regions/us-east1/operations/0cfe7722-014c-4834-b184-00b9e4961379 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-07-24T16:34:33.630Z4931.jc.12: Deployment Manager operation turing-problems/operation-1595608474469-5ab328c52462a-0c83d4d8-c6c54fdd errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20200724t123246/resources/aef-default-20200724t123246"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"403\",\"ResourceErrorMessage\":{\"code\":403,\"message\":\"The caller does not have permission\",\"status\":\"PERMISSION_DENIED\",\"statusMessage\":\"Forbidden\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/turing-problems/regions/us-east1/autoscalers\",\"httpMethod\":\"POST\"}}"
]

Getting an error from Facebook Server-Side API when sending a pixel event

I am trying to make use of Facebook Server-Side API to send pixel events from my server. I'm making a POST request to this endpoint:
https://graph.facebook.com/v6.0/509380299968653/events?access_token=<SYSTEM_USER_ACCESS_TOKEN>
and sending this payload:
data:[
{
"event_name": "PageView",
"event_time": 1586978506,
"user_data": {
"fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890",
"fbp": "fb.1.1558571054389.1098115397"
}
}
]
,
"test_event_code":"TEST13699"
However, I'm getting an error response from the facebook server:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (events) on node type (AdsPixel)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "AaqSg_DnGvvpjI3cWCK1yPU"
}
}
Need help to figure out what I'm doing wrong.

User VerificationCodes generate method always returns "Invalid Input" error

I'm trying to generate backup verification codes via the API, and it always returns a generic "Invalid input" 403 error.
https://developers.google.com/admin-sdk/directory/v1/reference/verificationCodes/generate
This occurs even when using the API explorer as a super admin. I'm supplying my email address in the userKey, and am authenticating using Oauth2 w/ the same email. This is the response I'm getting:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid Input"
}
],
"code": 400,
"message": "Invalid Input"
}
}
What is causing this error?
It might be worth noting that the list method works without error. The generate and invalidate methods both return a 400 error.

Messenger chatbot send file

I'd like to send a file to the user, to do so I tried the request below, but it fails.
The docs are not clear about wether is_reusable is compulsory, but the request fails with the same error, even if I include it.
The download url works fine in a browser.
I have https://asd.com/ whitelisted for sure.
Request:
{
"recipient": {
"id": "157..."
},
"message": {
"attachment": {
"type": "file",
"payload":
{
"url":
"https://asd.com/s3/..."
}
}
}
};
Response: HTTP 500
{
"error": {
"code": 1,
"message": "An unknown error occurred",
"error_subcode": 99
}
}
The issue is resolved now. I didn't touch the code, so probably it was an error on Facebook's side, as #Josh Cole and HTTP 500 suggested.
Recently they making quite a few breaking changes... Few days ago they broke all the web views, now the files, whats next?
I'm marking this question solved.