I'm trying to create muc room using createInstantRoom method in strophe.muc.js, but its throwing error. can anyone plese tell me what is the format of room name given as input to createInstantRoom method
I tried this:
this.globalConnection.muc.createInstantRoom('testGroup#conference.localhost/879FKQVK0NZVMWRYQ8#localhost', this.onSuccess, this.onFailure);
This is the error call backfunction response:
…
I don't know about strophe, but this sounds wrong:
testGroup#conference.localhost/879FKQVK0NZVMWRYQ8#localhost
If that argument is the room JID, then it's probably better something like:
testGroup#conference.localhost
Related
Trying to set up a dashboard to keep an eye on my hardware. I am running into issue with the without(cpu) causing an error.
avg without(cpu) irate(node_cpu_seconds_total {instance="nodeexp:9100", job="nodeexp", mode!="idle"} [1m])
The error I get with this query is error:"1:18: parse error: unexpected identifier "irate" in aggregation"
I have also tried it this way.
avg(without(cpu) irate(node_cpu_seconds_total {instance="nodeexp:9100", job="nodeexp", mode!="idle"} [1m]))
The error I get with this query is error:"1:12: parse error: unexpected "(" in aggregation"
Not sure what I am doing wrong here. Any help would be appreciated.
I was able to figure it out.
avg without(cpu) (irate(node_cpu_seconds_total{instance="nodeexp:9100", job="nodeexp", mode!="idle"}[1m]))
Just trying out MongoDB. So this might be a very basic issue. Trying to create a collection "info", but encountering errors as below. Appreciate the help.
uncaught exception: SyntaxError: missing : after property id :
#(shell):1:42
The code is as below :
db.info.insert({"userName":"John","mail”:"John#gmail.com","mobile":12345678},{"Transaction":[{"itemId":"a100","price":200},{"itemId":"a110","price":200}]},{"Payment":["Type":"Credi
t-card","Total":400,"Success":true]},{"Remarks":"1st complete record,payment successful"})
When you try, most of the developers would recommend to read the documentation of Insert data in mongodb. If you clearly understand, then you might understand the problem. The document was not well formatted which means you created object for each key:value pair. And payment is an array which holds objects. It was also not formatted.
You can try below code, and have fun with MongoDB
db.info.insert(
{
"userName":"John",
"mail":"John#gmail.com",
"mobile":12345678,
"Transaction":[{"itemId":"a100","price":200},{"itemId":"a110","price":200}],
"Payment":[{"Type":"Credit-card","Total":400,"Success":true}],
"Remarks":"1st complete record,payment successful"
}
)
I need to add vanilla selectors (as #a or #p, but I also want to add there selector arguments as #a[team=blue]) to my plugin command. Is there some library or even some build-in function in bukkit? I tried executing command, that returns UUID or name, but I had problem with reading its result.
I do not really understand what you want, but if you want to return Players UUID just do it like that:
player.getUniqueID();
and thats it. You can return this to a player by making a command and sending him a message with:
player.sendMessage(player.getUniqueID.toString());
So I have tried to get the error message from a filter array in a logic app workflow, this is what i have tried:
#body('Filter_array')['error']
#actions('Filter_array')['outputs']['body']['error']
Am I missing something or doing something wrong here?
Thanks.
UPDATE:
It says: "cannot be evaluated because property 'error' cannot be selected. ".
But i can clearly see the "error" in the body object in the output.
Ok so i managed to figure it out, i missed the fact that the array doesnt give me a single object as i thought i set it up to. so the solution was this:
#string(actions('Filter_array')['outputs']['body'][0]['error'])
Thanks for the help! :)
Can you try with #actions('Filter_array')['error'] ?
You have to distinguish 2 types of errors.
First error can occur during execution of your connector. Eg. The filter did not match. In this case, the connector executed and returns an output with an error-message.
Second error is a runtime error that can occur on the connector. For example if the input of your connector is invalid and the executing of the connector can't be triggered. In this case, the connector does not generate an output or result. In that case, you have to catch the exception with #actions('Filter_array')['error']
I am using the component tPivotToColumnsDelimited in Talend 6.1.1. When I try to run the job I get the error message "The method parseObject(String) is undefined for the type Object".
In code view I can see the error relates to this line of Talend-generated code:
sumtPivotToColumnsDelimited_1 = Object.parseObject(row3.Amount + "")
As you can see from the process flow above, the data comes from an SQL query. The schema flowing into the tPivotToColumnsDelimited looks like this:
The tPivotToColumnsDelimited component settings look like this:
Any suggestion how to fix it?
Its clear that Talend cannot parse an Object typed variable, You need to change the type of column Ammount to other type like int, float.