Google BigQuery Error: "code": 501, "message": "Not Implemented: Cannot cancel a job of this type" - copy

I'm getting the following error when trying to cancel a (not too big, 2.6 GB copy) job in BigQuery:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notImplemented",
"message": "Not Implemented: Cannot cancel a job of this type"
}
],
"code": 501,
"message": "Not Implemented: Cannot cancel a job of this type"
}
}
The status of the job is the following:
"status": {
"state": "RUNNING"
}
I also can't delete the table it's copying from (what kind of makes sense), but without an error message. I can click 'Delete table', but nothing happens.
Did someone encounter the same problem or has someone a solution for this? It's running for an hour now and I need to go on.

Copy table jobs cannot be cancelled (this is what error message is saying). But BigQuery is going to implement support for copying table cancellation soon. In the meantime, if you could share the job id of the query, the BigQuery team can investigate why this particular one got stuck.

Related

Getting error 400 on the API end point runReport, the front end doesn't give me errors with same dimensions and metrics

I’m trying to use the API for GA4. Before December 5 I was able to do the following call: "url": "https://analyticsdata.googleapis.com/v1beta/properties/307276000:runReport", "method": "POST", "body": "{\n"dimensions":[\n{\n"name":"date"\n},\n{\n"name":"deviceCategory"\n},\n{\n"name":"pageLocation"\n},\n{\n"name":"pageTitle"\n},\n{\n"name":"sessionCampaignName"\n},\n{\n"name":"sessionSourceMedium"\n}\n],\n\ "metrics":[\n{\n"name":"screenPageViews"\n},\n{\n"name":"newUsers"\n},\n{\n"name":"engagedSessions"\n}\n],\n"dateRanges":[\n{\n"startDate":'2022-12-02',\n"endDate":'2022-12-12'\n}\n], \n"limit":"10000",\n"offset":0,\n"keepEmptyRows":true\n}" } And it was successful, but starting December 5, now I get the following error: { "error": { "code": 400, "message": "Please remove pageLocation to make the request compatible. The request's dimensions & metrics are incompatible. To learn more, see https://ga-dev-tools.web.app/ga4/dimensions-metrics-explorer/", "status": "INVALID_ARGUMENT" } } I get the results from the front end. Trying to understand what is the problem.
The front end gives me the results without an error, I keep getting the error since December 5.

CMS Strapi any requst Forbidden Error 403

Trying to get data from strapi. I read the instructions
Execute a GET request on the restaurant collection type in order to fetch all your restaurants.
**Be sure that you activated the find permission for the restaurant collection type**
import axios from 'axios';
axios.get('http://localhost:1337/api/restaurants').then(response => {
console.log(response);
});
i create new type "restaurant" in "Content-type builder" and add fields, in "Content manager" created entities of this type. But my answer
{
"data": null,
"error": {
"status": 403,
"name": "ForbiddenError",
"message": "Forbidden",
"details": {}
}
}
I spent a lot of time searching for an answer, but I never found where to activate the find permission. Where is this option?
Do I need to configure JWT validation for that?

How do I call create permissions on Google Drive API via Delphi

I'm trying to use Delphi to call Google Drive Permissions API to create a permission on a team drive. All goes well with the setting on the Google Try It section, but my Delphi code isn't working.
reqPermissions.Body.Add('{role: "organizer",type: "user",emailAddress: "it_admin#mycompany.com"}');
I've tried supplying the type field as a parameter in the Request component, but this also doesn't work. Driving me nuts at the mo, so any help much appreciated.
I always get the following response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "The permission type field is required.",
"locationType": "other",
"location": "permission.type"
}
],
"code": 400,
"message": "The permission type field is required."
}
}

Azure devops Server 2019 - Error while creating Workitem states

I am trying to create a state for existing work item.
For Get, the url will show the list of States under Bug.
But am facing an issue when I do Post with json.
https://{server}/{collection}/_apis/work/processes/{processid}/workItemTypes/Microsoft.VSTS.WorkItemTypes.Bug/states?api-version=5.0-preview.1
Json:
{"name": "Test-Status", "color": "007acc", "stateCategory": "InProgress", "order": 3 }
Below is the error details
Http - 404 - NotFound
{ "$id": "1", "innerException": null, "message": "VS402805: Cannot
find work item type with reference name
'Microsoft.VSTS.WorkItemTypes.Bug' in process named
'dcdcc713-ebc6-4940-aa9d-d6c9d3e00e39'.", "typeName":
"Microsoft.TeamFoundation.WorkItemTracking.Server.Metadata.ProcessWorkItemTypeDoesNotExistException,
Microsoft.TeamFoundation.WorkItemTracking.Server", "typeKey":
"ProcessWorkItemTypeDoesNotExistException", "errorCode": 0, "eventId":
3200 }
Any help regarding this is appreciated.
The problem should be:Microsoft.VSTS.WorkItemTypes.Bug. I think you need use the format like processName.typeName. In addition the original process cannot be customized , only the inherited process can be customized.
Here I test your api in postman,it can work well.
I had the same problem.
When you create a new process, all the Work Item Types from the Parente process (Agile, Scrum, etc.) starts with the Microsoft.VSTS.WorkItemTypes.(Epic, Bug, etc.) and you can't modify it, you will have the error:
"VS402805: Cannot find work item type with reference name 'Microsoft.VSTS.WorkItemTypes.Bug' in process name ..."
To solve this, you just need to create a new work item type that inherits that work item type that you want to use, post example:
POST https://dev.azure.com/{organization}/_apis/work/processes/{processId}/workitemtypes?api-version=6.0-preview.2
{
"referenceName": "ProcessName.Issue",
"name": "Issue",
"description": "your description",
"color": "B4009E",
"icon": "icon_traffic_cone",
"inheritsFrom": "Microsoft.VSTS.WorkItemTypes.Issue"
}
I hope it helps.
Have a nice day!

Getting 200 OK abd 400 bad request on the same request from Google Drive REST API

My Google Drive app checks on start if its settings files(the files are all on Drive) has changed. Thus on every start sends a files.list request to the Google Drive API to get the files metadata. The app has been used for more then 4 months with no suspicious beahaviour from this request. But the last few days a strange thing is happening. The problem is that from time to time(every 1 out of 10-20 starts) the request gets this response
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid Value",
"locationType": "parameter",
"location": "q"
}
],
"code": 400,
"message": "Invalid Value"
}
In all other cases the request gets an adequate response(200 OK mostly :)).
This is very strange because every time the request is the same and the query string( the q parameter) of course is the same i.e.
GET https://www.googleapis.com/drive/v2/files?corpus=DEFAULT&q=(title%3D'%5BClosed+Captions%5D.profile'+or+title%3D'Profiles'+or+title%3D'%5BGeneral%5D.profile'+or+title%3D'%5BTeletext%5D.profile'+or+title%3D'ezt5RoamingSettings.ini'+or+title%3D'ezt5ProjectSettings.ini'+or+title%3D'Project+Templates'+or+title%3D'ezt5IOPresets.ini'+or+title%3D'dicAutoCorrect.xml'+or+title%3D'dicShortForms.xml'+or+title%3D'dicDictionaries.xml')+and+trashed%3Dfalse&fields=items(fileSize%2C+id%2C+title%2C+modifiedDate%2C+md5Checksum%2C+parents(id%2C+isRoot))&key={MY_API_KEY}
Any ideas why is this happening will be much appreciated...