How do I open a localhost port for TibcoBW6 REST app - eclipse

I have created a simple TibcoBW6 REST api that compiles and runs successful.
The console logs indicate that the application is running but I try to invoke the api on Postman I get no response.
Telnet the port also can't connect.
I don't know whether my HTTP configurations are Ok, here is my connector properties
and the module properties.
I've scratched my head for hours searching for help online, but nothing came up.

once your service runs succesfully, type
lendpoints
in the console tab, you can check where your service is running.
If you don't get any result, there might be some problem with use of module properties, try to write directly localhost instead of using the module properties.

Related

Couldn't get any response when sending request to Postman

When I send a Post request to Postman, I get Could not get any response
error. The call is something like the following:
https://localhost:8080/ProjectName/ClassName/MethodName
My colleague tries exactly the same endpoint and there is no problem for him. It seems that the problem is something with the settings on my laptop. I tried the endpoint with Insomnia. But I still get the same error.
In the meantime, when I have some calls which do not require port number, there is no problem. I have the problem just with the calls which require me to mention the port number directly.
I should also mention that I'm using Docker and when I try to set a remote debug for my project, I get an error Unable to open debugger port (localhost:8080). I'm not sure if these problems are related. But I think there is something wrong with my port settings. Any help is appreciated.
Thanks in advance,
In my case, the problem was a stupid mistake from me.
As I said, I'm using Docker. I had used docker-compose.override.yml and had defined the ports there. But I had named the file wrongly docker-compose-override.yml (using a dash line instead of dot). So, the ports were not set correctly.

Gateway Timeout when accessing Bluemix WEB IDE/Node.js logs

I am using Web IDE and want to see the log by clicking on the arrow.I can only see an empty "Untitled" page. The Node.js app is running normally. Live edit is switch off.
After some minutes:
Gateway Timeout
The proxy server did not receive a timely response from the upstream server.
Reference #1.45bf1402.1511018717.3dddb8b
I'm not for sure what Web IDE you are referring to. The only one I'm aware of is the DevOps (which works for me below):
It seems to me like this error that you posted would indicate a temporary outage. Is it still an issue?
In any case, I would advise opening a support ticket if you encounter this issue again (more details about your account would help). I think the Bluemix proxy will time out requests if they take too long.

Can't run or debug the api locally

I am following the quick start here tutorial and the api works online as it should. However, when it comes to testing the api locally, the admin server runs as it should but the api itself, which i supposed should be http://localhost:8080/_ah/api/echo/v1/echo and any post message should work. All I'm getting is : bad runtime process port ['']. I would also like to know how to create a debug configuration in eclipse as well as the api-explorer similar to what we used to have in v1.

PHP Slow to process soap request via browser but fine on the command line

I am trying to connect to an external SOAP service using PHP and have written a small php test script that just connects to the service and performs a simple request to check everything is working.
This all works correctly but when I run via a browser request, it is very slow taking somewhere in the region of 40s to establish the initial connection. When I do the same request using the exact same script on the command line, it goes through straight away.
Does anyone have any ideas as to why this might be?
Cheers
PHP caches the wsdl in /tmp. If you run from the command line first, the cache file will be owned by whatever user you're running the script as, and apache won't be able to read the cache. The wsdl will have to be downloaded and parsed every time which will be slow.
Check the permissions of /tmp/wsdl*.
Maybe external SOAP service trying to check your IP, and your server has ICMP allowed, when your local network - not.
Anyway, this question might be answered more clearly by administrator of external SOAP service :)
Is there a difference between the php.inis that are being used?
On a standard ubuntu server installation:
diff /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
//edit:
Another difference might be in the include paths. Had this trouble myself on a local test server, it didn't actually use the soap class that was included (it didn't include anything, because the search paths weren't valid), but it included the built-in soap_client class.

How do I get more details on my request error on IIS7

I have deployed a REST service on an external server (IIS7). When I start the service from VS on the Dev server it works fine. But on the server i get:
Request Error, The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service.
How do I get more details on this error? I have looked in the log files directory that is configured under Logging feature for this web site in IIS Manager, but there are no files at all for this site it seems.
You should look in the Windows Event Log using the Event Viewer application (eventvwr.exe). Output to the IIS log files may be buffered so their contents may be updated after a restart, or when IIS is set to do it. Restarting IIS is a surefire way to force this.
Here is a blog post on how to do this.
I'm aware of 3 ways to get nicer errors:
Set UseVerboseErrors in InitializeService method. However, this won't give you anything if your error occurs before InitializeService is called (which happens).
Set IncludeExceptionDetailInFaults to true using an attribute before your service class.
Set IncludeExceptionDetailInFaults to true using web.config.