Unable to access to Web API with browser (XML error) - html

Good evening,
Recently I have made a simple Web API with Azure Function App + Cosmos DB. So far it worked perfectly (I used Postman to hit the endpoints and everything went fine). However, now I'm trying to access directly to the Web API with the browser https://.azurewebsites.net/api/assets and I found this error that impedes me to access to the page:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ApiErrorModel xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Azure.WebJobs.Script.WebHost.Models" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Arguments i:nil="true" xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<ErrorCode>0</ErrorCode>
<ErrorDetails i:nil="true"/>
<Id>c69b0acd-e646-4b09-8dc2-2444b34a177a</Id>
<Message>An error has occurred. For more information, please check the logs for error ID c69b0acd-e646-4b09-8dc2-2444b34a177a</Message>
<RequestId>b1f2d2ed-ec03-4f3e-9482-60d023bb9e79</RequestId>
<StatusCode>InternalServerError</StatusCode>
</ApiErrorModel>
Do you know how can I fix this problem?, bear in mind that I'm using the Function App from Azure Microsoft
Thanks in advance!

Related

Forge server authentication error 2 Legged

I am new to forge. I have been trying to create a basic server and authentication using nodejs by following exact steps in the youtube training videos. But i am facing errors in the initial phase itself getting an error code: ECONNRESET. I have a feeling that my firewall is blocking the servers but not able to make anything concrete out of this. The url that i tried hitting is "http://localhost:3000/api/forge/oauth/token". For some reason it always goes to catch block. Kindly let me know how to debug the error, and figure out the urls that need unblocking if necessary.

Google lighthouse audit report throws error: Lighthouse was unable to reliably load the page that you requested. (Status code: 404)

When I try after my site migration to cloud, I see no audit stats but following error.
How can I correct it? So that I can generate reports and can compare against the baseline I've taken much before the migration.
"Lighthouse was unable to reliably load the page that you requested. Make sure that you are testing the correct URL and that the server is properly responding to all requests. (Status code: 404)"

Postman HERE API Error on Setup

I'm having an issue setting up to the HERE API using Postman following these two guides: 1, 2.
Anyways, I've loaded the Postman collection, set the global environment and placed in my app-id and app-code (Freemium account) but I still get the following error when trying to get the access token:
{
"msg": "app_id or app_code is wrong",
"kind": "datalens#error",
"code": 402
}
Does anyone have any experience with getting through this? I've tried a million different little variations but I still get the same error. Any help is vastly appreciated. Thanks
Unfortunately the Geovisualization REST API is the only API on the portal that's currently not part of the Freemium plan. I apologize for the unclear error message and will look into improving this. To gain access please contact us through the portal.

Appcelerator message = "JSON Parse error: Unexpected identifier \"undefined\"";

I am adding new features to an app I wrote last years and is working now ... I just port the code from Appcelerator (3.2...) to the Appcelerator Studio 5.2.0.GA SDK ... and I have spent 2 days trying to figure out why code that currently works on an app in the app store is not working in the SDK 5.2.0 environment
I keep getting the above error .. I am positive the url is correct and working
This line of code works now in the app in the store and in 3.1... but is not working in 5.2.0
var jsonObject = JSON.parse(this.responseText);
It gives the above error
"JSON Parse error: Unexpected identifier \"undefined\"";
I have read their site and searched for a solution ... Thanks
entire Block
Try one thing:
Open this site and put your response data in which you are getting error https://jsonformatter.curiousconcept.com
After parsing the same data on the above site, you can check whether the problem is really in your Titanium code or in your data.
Also check whether you are really getting any response data or not.
If it does not help, then please share some necessary source code
Thanks

SSIS web service task, can't execute web service

I have a web service that is called from my ssis.
Used to work fine in test mode, when moved to live environment I get the error :
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Object reference not set to an instance of an object.. at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection) at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser) at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
We are using a proxy to access the web. Could this be a proxy problem. how to solve ?
Thanks
It was simple proxy issue.
Don't forget to configure the proxy tab in your Http Connection Manager
To help diagnose this, you might try using a script task and adding a Service Reference or Web Reference to the web service. Call the service within a try/catch block and log ex.ToString() if you get an exception. That way, you'll be sure to have all the details, and you can post them here in an edit to your question.
It's also worth noting that SSIS cannot invoke services with spaces in the names. See the following for details:
http://connect.microsoft.com/SQLServer/feedback/details/368606/ssis-web-service-task-cannot-call-services-with-a-space-in-the-name
This answer would have saved me time so I'm adding it in the hope it saves someone else some time.
I had the same problem, except my cause was that I was attempting to pass an integer (Int32) as a web service parameter. It looks like web service parameters in SSIS should always be strings.
I'm using SSIS 2017 and none of the solutions worked for me. But, after changing the SQL Server used by the project, from 2017 to 2016 (or whatever version of SQL is installed), I was able to run the WebService task successfully.
Hope will help somebody.