Internal error AsyncOperationConflictException when trying processing Azure Analysis Service - azure

When I try to process my Azure Cube, I get the following error:
{
"statusCode": 409,
"headers": {
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-root-activity-id": "6xxx82d1-xxxx-4613-9ca5-xxxxxxxxxx",
"x-ms-current-utc-date": "3/5/2019 4:00:25 PM",
"x-ms-xmlaerror-extended": "Internal error AsyncOperationConflictException_Message1.CUBENAME",
"Date": "Tue, 05 Mar 2019 16:00:26 GMT",
"Server": "Microsoft-HTTPAPI/2.0",
"Content-Length": "296",
"Content-Type": "application/json; charset=utf-8"
},
"body": {
"code": "Conflict",
"subCode": 1,
"message": "Internal error AsyncOperationConflictException_Message1.CUBENAME",
"timeStamp": "2019-03-05T16:00:26.2644538Z",
"httpStatusCode": 409,
"details": [
{
"code": "RootActivityId",
"message": "6xxx82d1-f39e-xxxx-9ca5-xxxxxxxxxx"
},
{
"code": "Param1",
"message": "inspire"
}
]
}
}
A brief explanation:
I try to process my cube in logic apps. In the following figure in step 1 I scale out my Azure AS, then in step 2 set the parameter and in step 3 I get the error:
Do you have any idea why I get this error?

Related

new klaviyo node SDK

I'm trying to use Klaviyo for the first time, and the natural starting point seems to be their new Node SDK. Unfortunately, their documentation seems to be an odd combination of extremely detailed, and laking any details.
I've set up my account and gotten my API key, but am failing to get a simple registration to succeed.
I thought I could do this:
import { ConfigWrapper, Profiles } from 'klaviyo-api';
import logger from '../utils/logger';
import requireEnvVariable from '../utils/requireEnvVariable';
export async function subscribe(profile) {
const apiKey = requireEnvVariable('KLAVIYO_PK');
ConfigWrapper(apiKey);
const user = Profiles.createProfile(profile)
.then(data => logger.debug({data}, 'Got profile data'))
.catch(error => {
logger.warn(error, 'Klaviyo error');
return error;
});
return true;
}
For profile, I'm passing in
{
"email": "me#example.com",
"phone_number": "",
"first_name": "Bob",
"last_name": "Smith"
}
but it responds with an error:
WARN: Klaviyo error
env: "development"
err: {
"type": "Error",
"message": "Bad Request",
"status": 400,
"response": {
"req": {
"method": "POST",
"url": "https://a.klaviyo.com/api/profiles/",
"data": {
"email": "me#example.com",
"phone_number": "",
"first_name": "Bob",
"last_name": "Smith"
},
"headers": {
"authorization": "Klaviyo-API-Key <my private key>",
"revision": "2022-10-17",
"user-agent": "klaviyo-api-node/1.0.2",
"content-type": "application/json",
"accept": "application/json"
}
},
"header": {
"date": "Wed, 28 Dec 2022 23:34:14 GMT",
"content-type": "application/vnd.api+json",
"content-length": "211",
"connection": "close",
"cf-ray": "780e1b056c3728f5-ORD",
"allow": "GET, POST, HEAD, OPTIONS",
"vary": "Cookie, Accept-Encoding",
"cf-cache-status": "DYNAMIC",
"cid": "UDiE82",
"ratelimit-limit": "700, 75;w=1, 700;w=60",
"ratelimit-remaining": "699",
"ratelimit-reset": "44",
"x-robots-tag": "noindex, nofollow",
"server": "cloudflare"
},
"status": 400,
"text": "{\"errors\":[{\"id\":\"5648779b-3e1a-4ccf-80c4-dc19b8b32a2c\",\"status\":400,\"code\":\"invalid\",\"title\":\"Invalid input.\",\"detail\":\"The payload provided in the request is invalid.\",\"source\":{\"pointer\":\"/data\"},\"meta\":{}}]}"
}
}
The various examples under Optional Parameters made me think that the above would Just Work; however, the docs also say, "For example values / data types, as well as whether parameters are required/optional, please reference the corresponding API Reference link," and "This SDK is a thin wrapper around our API. See our API Reference for full documentation on API behavior."
So looking at the Create Profile API Reference, I tried both
const user = Profiles.createProfile({attributes: profile})
and
const user = Profiles.createProfile({type: 'profile', attributes: profile})
but they both end up with the same error (except the reported data is updated appropriately, e.g.,
"status": 400,
"response": {
"req": {
"method": "POST",
"url": "https://a.klaviyo.com/api/profiles/",
"data": {
"type": "profile",
"attributes": {
"email": "me#example.com",
"phone_number": "",
"first_name": "Bob",
"last_name": "Smith"
}
},
What's the right way to use the new SDK? Or should I ignore this, and go back to creating manual fetch calls against their API?

Logic App Standard workflow trigger failing

We created a logic app standard that uses a service bus api connection. When looking in the tab "Connections" it says that the connection is in the "Connected" status.
The problem is that the trigger of the workflows fails and the Outputs json is the following:
{
"statusCode": 401,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"x-ms-request-id": "xxxx",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "true",
"Date": "Wed, 20 Jul 2022 15:21:08 GMT",
"Content-Length": "287",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 401,
"message": "Key 'token' not found in connection profile.\r\nclientRequestId: 0b492f59-bca5-4901-8132-b0ce10416d25",
"error": {
"message": "Key 'token' not found in connection profile."
},
"source": "servicebus-xxx.azurewebsites.net"
}
}
What can possibly be the issue here?
Can this possibly be due to permission restrictions?

When I used nodejs sdk to translate file is failed

When I used nodejs sdk to translate file is failed.
I uploaded the ifc file already. And I use nodejs SDK - ForgeSDK.DerivativesApi to translate " ifc " to " svf ". But when I check the job process ,I got " TranslationWorker-InternalFailure " error.
According to the sdk reference(forge sdk for nodejs on github ). My post body is:
{
"input":{
"urn":"dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Ym9pbGVyL2JyaWRnZTIuaWZj"
},
"output":{
"formats":[{
"type":"svf",
"views":["2d","3d"]
}]
}
When I used postman to call "https://developer.api.autodesk.com/modelderivative/v2/designdata/{urn}/manifest" api.It response me:
{
"Result": {
"statusCode": 200,
"headers": {
"access-control-allow-credentials": "true",
"access-control-allow-origin": "*",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 06 Mar 2018 09:16:00 GMT",
"x-ads-app-identifier": "platform-viewing-2018.01.02.49.b4217d5-production",
"x-ads-duration": "212 ms",
"x-ads-startup-time": "Mon Feb 26 02:55:52 UTC 2018",
"content-length": "439",
"connection": "Close"
},
"body": {
"type": "manifest",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"region": "US",
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6Ym9pbGVyL2JyaWRnZTIuaWZj",
"version": "1.0",
"derivatives": [
{
"name": "bridge2.ifc",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"messages": [
{
"type": "error",
"message": "Unrecoverable exit code from extractor: -1073741829",
"code": "TranslationWorker-InternalFailure"
}
],
"outputType": "svf"
}
]
}
}
But when I used postman to call " https://developer.api.autodesk.com/modelderivative/v2/designdata/job " api
to translate is successed.
what different the api and the sdk?
This is what I'm using to translate using the NPM
var translateFile = function(encodedURN){
logs(chalk.bold.green("**** Translating file derivative"));
var postJob =
{
input: {
urn: encodedURN
},
output: {
formats: [
{
type: "svf",
views: ["2d", "3d"]
}
]
}
};
return new Promise(function(resolve, reject) {
derivativesApi.translate(postJob, {}, oAuth2TwoLegged, oAuth2TwoLegged.getCredentials()).then(
function(res){
resolve(res);
},function(err){
reject(err);
}
)
});
};
And if you want to test it also I have a Node Uploader sample using the NPM calls to do the whole process.
https://github.com/jaimerosales/modelderivative-nodejs-tutorial

Ionic Push Notification on database Insertion

Deal All,
I am working on Ionic2 which receives push notifications. It is working fine. I want to fo a step further. I need to automate the push notifications. I am using PHP with mySQL. I also have NodeJS WebApi. Is there any possibility in NodeJS or PHP to send Ionic Push notification? I have followed the following tutorial in NodeJS but I get 401 Unauthorized error:
ionic-push-server
Following is the error:
STATUS: 401
HEADERS: {"date":"Thu, 13 Apr 2017 19:13:09 GMT","content-type":"application/json; charset=utf-8","content-length":"196","connection":"close","server":"openresty","via":"1.1 vegur","access-control-allow-credentials":"true","access-control-allow-methods":"HEAD,GET,POST,PATCH,PUT,DELETE,OPTIONS","access-control-allow-headers":"DNT,Authorization,X-CSRFToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"}
BODY: {"meta": {"version": "2.0.0-beta.0", "status": 401, "request_id": "00000000-1111-2222-3333-444444444444"}, "error": {"link": null, "type": "Unauthorized", "message": "JWT decode error occurred."}}
var ionicPushServer = require('ionic-push-server');
var credentials = {
IonicApplicationID : "IonicAppId",
IonicApplicationAPItoken : "IonicApplicationAPIToken" //You need to generate from app settings
};
var notification = {
"tokens": ["your", "device", "tokens"],
"profile": "AppProfileNameInSmallLetters",
"send_to_all": true,
"notification": {
"title": "Hi",
"message": "Hello world!",
"android": {
"title": "Hey",
"message": "Hello Android!",
"payload": {
"category": "Star"
}
},
"ios": {
"title": "Howdy",
"message": "Hello iOS!",
"payload": {
"category": "Star"
}
}
}
};
ionicPushServer(credentials, notification);

box.com node client - cannot access files created by collaborator

I'm the co-owner on a box.com file.
My boss is the owner.
I'm using https://www.npmjs.com/package/box-node-sdk to manage the files
The node client has my bosses' enterprise credentials
He made a folder
I made several other sibling folders
I can retreive his
I can't retreive mine
We're both listed as collaborators on all the files
The error I get looks like this:
{
"statusCode": 404,
"response": {
"statusCode": 404,
"body": {
"type": "error",
"status": 404,
"code": "not_found",
"context_info": {
"errors": [
{
"reason": "invalid_parameter",
"name": "item",
"message": "Invalid value 'd_11786923812'. 'item' with value 'd_11786923812' not found"
}
]
},
"help_url": "http://developers.box.com/docs/#errors",
"message": "Not Found",
"request_id": "338009555580a32f872f7c"
},
"headers": {
"server": "ATS",
"date": "Fri, 21 Oct 2016 15:23:36 GMT",
"content-type": "application/json",
"content-length": "324",
"cache-control": "no-cache, no-store",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"vary": "Accept-Encoding",
"age": "0",
"connection": "keep-alive"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "api.box.com",
"port": 443,
"hostname": "api.box.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/2.0/folders/11786923812",
"path": "/2.0/folders/11786923812",
"href": "https://api.box.com/2.0/folders/11786923812"
},
"method": "GET",
"headers": {
"User-Agent": "Box Node.js SDK v1.1.0",
"Authorization": "[REMOVED BY SDK]",
"accept": "application/json"
}
}
}
}
EDIT: So, I can get folder 0 and it's not where I'm looking BUT, I did check earlier and added a file where I thought I was looking and it did show up, so I'm guessing that my boss would have to create the files...

Resources