What am I doing wrong in this QBO v3 API Attachments upload filemaker pro 19 request - file-upload

I am trying to upload attachment to an invoice to QBO through Filemaker Pro 19.
When I run the following code it shows the following error.
Error: "System Failure Error: Could find no Content-Disposition header within part"

you will need to reference the file from a container field. Check the -F curl option in the filemaker help to see the syntax for referencing a container field.

Related

Error while deploying Azure resource template from Github through Visual Studio

While deploying the template through Visual Studio, I am getting an error.
VM has reported a failure when processing extension 'dscExtension'. Error message:
The DSC Extension failed to execute: Error downloading
https://stagef848a9a999ac4175a5c.blob.core.windows.net/myresourcegroup-stageartifactsscripts/WebServerConfig.ps1.zip
after 2 attempts: AuthenticationFailedServer
failed to authenticate the request. Make sure the value of
Authorization header is formed correctly including the signature.
13:58:38 - RequestId:d731468a-601e-00be-15ea-b36a90000000 13:58:38 -
Time:2018-03-04T18:58:06.8482865ZSignature did not match. String to sign used was r
When I looked for a solution, somebody suggested to append
&comp=list&restype=container to artifacts location. I tried but failed.
What is the exact location in JSON (Specific parameter) where I should add this string?
The DSC Extension failed to execute: Error downloading https://stagef848a9a999ac4175a5c.blob.core.windows.net/myresourcegroup-stageartifactsscripts/WebServerConfig.ps1.zip after 2 attempts: AuthenticationFailedServer failed to authenticate the request.
According to your error message, it seems that your supplied blob SAS token for downloading the blob is invaild. You could try to download the blob with blob SAS token url directly to check it. If it is invaild we could generate blob SAS token with azure portal or Azure Storage explorer eas.

"500 status code received on GET method for API" error in Ambari - Hive Service instllation

I have ambari 2.1.2 installed on CentOS 6.4. I have the following two questions related to Hive service installation through ambari.
Question 1:
On the Ambari Dashboard, what is “MySQL Server / Hive”?. When Ambari was installed, wasn’t MySQL server already installed initally?. Will installing the “MySQL server/ Hive” service, overwrite the existing MySQL server?.
Question 2:
When I try to install “MySQL server / Hive” service, I get the following “Get Method for API” error (please see details at the end of this post). I tried to create hive database manually also and selected “Existing MySQL database” option from the config section, but this error never goes away. I am unable to find any logs and therefore stuck.
Following is the first error message that is displayed in a dialog box.
500 status code received on GET method for API:
/api/v1/clusters/SGICluster/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,alerts_summary,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,host_components/HostRoles/desired_admin_state,metrics/disk,metrics/load/load_one,Hosts/total_mem,Hosts/os_arch,Hosts/os_type,metrics/cpu/cpu_system,metrics/cpu/cpu_user,metrics/memory/mem_total,metrics/memory/mem_free,stack_versions/HostStackVersions,stack_versions/repository_versions/RepositoryVersions/repository_version,stack_versions/repository_versions/RepositoryVersions/id,stack_versions/repository_versions/RepositoryVersions/display_name&minimal_response=true&sortBy=Hosts/host_name.asc
Error message: Server Error
If I close the dialog box, by pressing "ok" green button, then the error message is shorted as shown below
500 status code received on GET method for API:
/api/v1/clusters/SGICluster/requests?to=end&page_size=10&fields=Request
Error message: Server Error
I found that trying to install MySQL will fail because there is already an instance of MySQL server. The solution is to ignore the installation of MySQL server and use the existing mysql server instance, which can be mentioned from the advance configuration section in Ambari.

Splunk 6: "Cannot preview on this Splunk instance"

I have a distributed Splunk 6 environment with which I am working through the installation of a new Technology Add-on. On my forwarder I am trying to add a new Data Input... Settings > Data inputs > Files & directories > New then select my file and click Next... on the Set Sourcetype page the message "Cannot preview on this Splunk instance" appears.
I have numerous other Data Input set up in the same manner and even another file from the same directory as this file that is throwing the message. The directory is local to the Linux box the fowarder is on and I already verified permissions on the file.
Still completely wet behind the ears with Splunk and stuck troubleshooting this problem.
Your assistance is appreciated.
Thanks.
Please try adding that input from a different search head or indexer. Since that server maybe a forwarder it may not have that functionality.

Cannot open database "WebApi2BookDb" requested by the login. The login failed. Login failed for user 'Domain\myusername'

I am trying to create Web API following this book http://www.apress.com/9781484201107?gtmf=c. I got to the end of chapter 5 and when I run my solution I got this error message:
Cannot open database "WebApi2BookDb" requested by the login. The login failed.
Login failed for user 'Domain\myusername'.
I thought that maybe I have messed up somwhere but when I downloaded source (available here Chapter 5: http://www.apress.com/downloadable/download/sample/sample_id/1577/) I got the same exact message.
The connection string is: <add name="WebApi2BookDb" providerName="System.Data.SqlClient" connectionString="Server=.;initial catalog=WebApi2BookDb;Integrated Security=True;Application Name=WebApi2Book API Website" />
I am using Visual Studio 2013. What could be solution for this problem?
Supposedly sending this request:
POST ht tp://localhost:61589/api/v1/tasks HTTP/1.1
Content-Type: text/json
{"Subject":"Fix something important"}
You should get response that should look something like this:
HTTP/1.1 201 Created
Content-Type: text/json; charset=utf-8
Loation: ht tp://localhost:61589/api/v1/tasks/10
{"TaskId":10,"Subject":"Fix something important","StartDate":null,"DueDate":null,
"CreatedDate":"2014-05-04T02:52:39.9872623Z","CompletedDate":null,
"Status":{"StatusId":1,"Name":"Not Started","Ordinal":0},"Assignees":[],
"Links":[{"Rel":"self","Href":"ht tp://localhost:61589/api/v1/tasks","Method":"GET"}]}
I've just run into this problem myself. This is what you need to do:
Open the solution in visual studio containing the code from chapter 5.
Make sure you can build the "WebApi2BookDb" project. If you are having issues building this project see this stack overflow post.
Create a database in SSMS called: "WebApi2BookDb".
Right click on the WebApi2BookDb project in visual studio and select publish.
Click on Edit.
Enter "." for the server name or the name of your local SQL server instance.
Enter the username / password or use windows authentication.
Select the "WebApi2BookDb" database.
Test the connection.
Click OK.
Click Publish.
You should then be able to run the application without any issues.
You will then need to download fiddler. Once installed and running you will need to create a Post Request:
Open Fiddler
Click on the Composter tab.
Change the drop down list to "Post"
Enter the URL e.g. http://localhost:61589/api/v1/tasks/ (Yours might be different).
Ensure Http/1.1 is selected from the drop down list.
The content type should be as follows: Content-Type: text/json
In the request body enter: {"Subject":"Fix something important"}
Click on the "Execute" button.
You should then get a successful response and a new row should be added in your database!
The error tells you exactly what is wrong. It can't open the WebApi2BookDb database, which, given your connection string, probably doesn't exist. You need to create that database.

cfhtmltopdf with remote PDF service returning "FILE NOT FOUND"

I'm developing with CF11 on a Mac, which doesn't support having a local PDF Service to use with the new tag. But, I'm able to set up a PDF service that points to our dev (Windows) server. That service verifies via the admin.
However, when I try to do a simple test:
<cfhtmltopdf>
Hello
</cfhtmltopdf>
I get an error of "Error occurred while generating PDF" with the error detail of "Reason: FILE NOT FOUND". If we try this code directly on the dev server (so it's using the local PDF service), it works just fine.
Anyone have an idea of what file it's referring to or what else may be going on?
I had the same issue and it came down to the need to start the PDF service manager.
You need to go into ColdFusion Administrator, navigate to the "PDF Service" (under the "DATA & SERVICES" section). You will want to start the service that you want running by pressing the play button to the left of the service.
I believe this will resolve your issue.