"Restore operation failed due to invalid parameters or format of the parameters is not correct" from Restores.TriggerAsync - azure-vm

I am using Microsoft.Azure.Management.RecoveryServices.Backup 4.0.1 to restore Azure VM in C#, I received an error on Restores.TriggerAsync:
"Restore operation failed due to invalid parameters or format of the parameters is not correct"
I tried to find the documentation on how to set the parameters with RestoreRequestResource, I couldn't find anything. Can someone using Microsoft.Azure.Management.RecoveryServices.Backup, help me? Thank you.

After trial and error for a few days, finally I resolved the issue. For Restores.TriggerAsync API call, the paramter's Properites needs to be set to an IaasVMRestoreRequest instance, which will become the REST API call body.

Related

API returned error: "Duplicate instance, please try again with different values."

I'm using the Coinbase connector for Ruby, and I'm receiving a Coinbase::Wallet::ValidationError with the description Duplicate instance, please try again with different values. when doing a Coinbase::Wallet::Account::sell operation.
I have been trying to understand which is the error with the API documentation and along the web, but no luck.
Could you give an explanation of which is the error here?

System Extension Validation Fails

im trying to submit a Network Extension activation request but i get this error.
The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 9.)
I looked it up and apparently it means "validationFailed". Is there a way to debug this because i cant seem to figure out why the validation is failing. Thanks.
Finally found the solution. You need to set the NEMachServiceName property on the Info.plist of the extension to match the app group name.

Error getting valid response from API. Check log file for error details

I cant seem to find the error log of authorize.net api.
I have Laravel application which uses "authorizenet/authorizenet" package and the code where I try to create a customer profile, I get following error:
"Error getting valid response from API. Check log file for error details"
Can anyone tell me whereto find these logs? and what it's name?
I tried in /var/logs folder but i cant seem to find it.
if someone else has this issue, here is the solution.
The authorize.net has changed their endpoints from https://api.authorize.net to https://api2.authorize.net which is one of the possible reasons that you might get this error.
So if you are hardcoding these endpoints in your code then update it to the new one or if you are using library constant for it, same as me:
\net\authorize\api\constants\ANetEnvironment::SANDBOX
\net\authorize\api\constants\ANetEnvironment::PRODUCTION
Then simply update your library by running:
composer update authorizenet/authorizenet
This is how I resolved it and it seems to be the best way so far because it will update their library to take everything up to date if they have changes something else and you started experiencing this issue.
I hope it helps

Sonar rest API insufficient privileges

I can't access most of the Sonar API, for example
localhost:9000/api/tests/show?key=htmlparser:/src/test/java/HtmlParserTest.java
or see api/sources/scm. api/server/system and some other general stuff works but nothing where I actually see the code.
I always get a
{"errors":[{"msg":"Insufficient privileges"}]}
I set the project permissions to let anyone see source code & browse the porject, I tried it with Postman, a Java HttpRequest, the command line ...
curl -u admin:admin localhost:9000/api/tests/show?key=htmlparser:/src/test/java/HtmlParserTest.java
I checked with SonarQube 5.1 and 4.5.1. I've found a posts with the same issue but have yet to find a fix. Does anyone have a solution idea?
Thanks for your help
SOLUTION
It was a syntax error (even though the message said Insufficient privileges). The correct call would be:
localhost:9000/api/tests/show?key=htmlparser:htmlparser:src/test/java/HtmlParserTest.java
If you are not sure what goes before the "src/..." don't worry. You can get it by calling api/projects/index and looking at the attribute named "k".

What is the GlobalIdentity and how do I set it in the FileNet web service?

I'm trying to upload a document into filenet via CEWS, but I'm getting this error:
“The unexpected exception is chained to this exception. Message was: com.filenet.apiimpl.core.GlobalIdentity incompatible with com.filenet.apiimpl.core.RepositoryIdentity“
Our Filenet people don't seem to know what that means. They've provided working code that basically looks the same as mine (but which I can't compile directly at the moment because it references parts of their project I don't have.)
So is the GlobalIdentity something I need to pass in through the web service? If so, how? If not, where is it configured?
Ok I finally spotted my mistake.
I had incorrectly set crt.TargetSpecification.classId to the name of the repository I was trying to use rather than to the correct classId.

Resources