Call google places api from web server - jersey

When I try to call the Google places API using the Jersey REST standalone client it works fine and I am able to retrieve data. But the same code when made part of the web application deployed on weblogic server it throws a 500 internal error. I have tried calling the url directly as well, but that did not work. When the code tries to call the Google Places API it gets 500 internal error as response. I have also set host name verifier as none on weblogic server, that resolves the ssl exception but the 500 internal error is still there.

Related

How to find the cause of HTTP 500 Error for GKE deployment?

I have deployed a Spring Boot application onto a Google Kubernetes Engine workload. First, I pushed an image to Artifact Registry. Then, I ran the image using the docker run command in the gcloud command line. My GET request worked perfectly fine then, but once I deployed the image to a Kubernetes workload, the same GET request to the LoadBalancer returned a 500 Internal Server HTTP error.
Everytime I try going on Google's Error Reporting, it tells me to setup Error Reporting, but I don't really understand how to, and besides I thought HTTP errors automatically went to Error Reporting.
I'm sorry if there's too many extra details, I mainly want to know how to see the cause of an HTTP 500 error on a GKE deployment?

403.18 - Forbidden The specified request cannot be processed in the application pool that is configured for this resource on the Web server

I don't understand why I get the error in the title of this post.
I have a Website running its own Application Pool in .NET V4.0.
Under the Website I have an Application running on its own Application Pool in "No Managed Code" as its a C# .NET 5.0 REST Web API. The Application points to a different physical location on the Server than the Website.
Why am I getting the following error when I navigate to the desired URL:
403.18 - Forbidden The specified request cannot be processed in the application pool that is configured for this resource on the Web server.
When I try to call my REST service from POSTMAN using the correct URL I receive the following response from my server:
<TITLE>403 Forbidden</TITLE>
<BASE href="/error_docs/"><!--[if lte IE 6]></BASE><![endif]-->
</HEAD>
<BODY>
<H1>Forbidden</H1>
You do not have permission to access this document.
I have set the folder permissions correctly however, I'm still receiving this error.
There are many reasons for 403.18 error:
An ISAPI filter or custom module changed the URL to run in a
different application pool than the original URL.
An ISAPI extension (or custom module) used ExecuteURL (or
ExecuteRequest) to run in a different application pool than the
original URL.
You have a custom error page that is located in one application pool
but is referenced by a Web site in another application pool. When the
URL is processed, it is determined by IIS that that it should have
been processed in the first application pool, not the other pool.
The Web site has multiple applications configured. The application
this request is configured to run in is set to run in an application
pool that does not exist.
Things you can try:
If you have an application that is trying to process a URL in another
application pool (such as trying to process a custom error), ensure
that they both run in the same application pool if appropriate.
If you are trying to process a custom error URL that is located in
another application pool, enable the custom errors Redirect feature.
Verify that the application pool for the application exists.
Create a tracing rule to track failed requests for this HTTP status
code and see if ExecuteURL is being called.
For me a folder on my one virtual app was missing the dot net standard DLL. If the answer above doesn't resolve things it might be a good idea to beyond compare directories between the busted ENV and a working one.

FABRIC_E_TIMEOUT only on server?

I have a service fabric (on-premises) application written in .NET Framework 4.6.1 with one service with WebAPI using OWIN. When I make wrong request (bad uri) to api on local machine cluster it gives me 404 not found but when I deploy it to server and try same uri it takes some time and finally give FABRIC_E_TIMEOUT. I tried to add some custom IHttpControllerSelector and IHttpActionSelector like in this article https://dzone.com/articles/handling-http-404-error-aspnet but it was not helping. What can I do to make app on server work like on local cluster and return 404 immidiatelly?

Hosted APEX 5.0 (apex.oracle.com) - Webservice Reference

I am trying to do a testcase dealing with webservice REST in hosted Ape 5.0 Environment (apex.oracle.com).
There is a preinstalled Web Service in the Workspace "oracle.example.hr".
I have managed to call that Service from my Browsers URL.
But when i create a Web Service Reference to use that Service for an APEX Page, I receive the Errors:
ORA-29273: HTTP request failed
ORA-29024: Certificate validation failure
I am using the Oracle hosted Environment apex.oracle.com; thus I cannot apply ACLs etc.
Any suggestions?
Kind Regards,
Andreas Resch
Are you using https?
It seems that you are using a client that checks if the certificates are valid.
You can either solve the problem on the server (that is not configured with the correct certificate or configure the client to ignore this problem).

API call within a Web API fails

I am working on a web api backend.
I am trying to make a call to another web api from within one of our api controllers.
When I run this as a unit test it works fine.
However, when it is hosted on IIS Express the GetAsync call fails with the exception: "No connection could be made because the target machine actively refused it 127.0.0.1:8888".
When we host it on azure we also get a similar exception.
Is there a setting in our web.config missing?
Any suggestions?
looks like it is still pointing to local host, needs to point to IIS or Azure server.
Check for hardcoded values in test code or web config.

Resources