error trying to deploy a node application to aws-lambda - docker

I have been trying to deploy a basic service with aws-lambda and using a docker image, everything goes fine until I create a public function but I get this error.in chrome
in firefox,
and cheking the cloudwatch I get this outputcloudwatch log
Can someone please give me an answer?
Im new using aws
I tried to change the response type in the node application
create an api gateway.
but nothing worked

Related

How do I troubleshoot Azure AKS Service

I created a new AKS cluster. I chose a known-good, pre-existing container image from azure container registry. I went into workloads and created new two different starter application. The first is the basic web application / sample project. That sample application appears to be working fine. I then created my second application based on my pre-existing container. I chose the option for single-image application. Once created I tried navigating to the ip address for that second application. However I'm receiving page can not be displayed.
I went into the Live Logs feature. However, nothing is ever streamed. I also tried the "Diagnose and solve problems", which detected no issues.

UI5 Tooling command "ui5 serve" does start local server in SAP BAS but why can't I connect to it?

I have SAP BTP trial account in which Im trying to run a SAPUI5 application via the SAP Business Application Studio (BAS). I have added nothing fancy to it. Just created one from the one of the many UI5 templates and tried running it from the terminal via the command ui5 serve.
The command does execute without any problems and also provides me with the standard localhost:8080 URL. Im using Firefox since BAS doesn't seem to work with Edge as well as Chrome.
I even get a message popping on the right bottom corner telling me a service is listening to port 8080 with a button that says "open in New Tab" pressing it however does nothing.
Im new to SAP BTP and BAS. Are there more things to configure before running the application? Or perhaps I have to configurate the browser itself? The error message:
I have also had some experience with the Business Application Studio.
You don't work locally here like in VS Code, for example. That's why you can't access it via localhost:8080, but have to use the link that provides the BAS. In this case, something like
port8080-workspaces-....applicationstudio.cloud.sap.
The best thing you can do is to press "Open in new tab" on the screenshot with "A service is listening to port 8080", then you will be redirected to the working link.
Kind regards
Sebastian

Nextauth Twitter - Function not found with Netlify dev

I couldn't find any reference to this and finally managed to solve problem.
When using Nextauth with Twitter (and probably other providers) you get a 'Function not found...' error if you are using Netlify dev.
Error in the console is: "Warning: Missing form submission function handler"
I believe this is something to do with the Netlify dev proxy. If you use :8888 which is the front-facing server then no go, however, if you use the :3000 port server that sits behind it, it's fine. I assume the netlify dev server is picking up on something first.
If anyone has more information please do let me know. For the time being, using the alternative server is fine for testing as I'm not also trying to use Netlify functions.

Issue trying to launch sample project che-ide-server-extension

With Eclipse Che, I've recently been able to deploy the docker container without any issue as provided in the instructions.
I'm at the point where am trying to learn a bit more about extension development for Che, and I'm going through the small introduction on "developing your first plugin" located on the following page:
https://www.eclipse.org/che/docs/che-in-che-quickstart.html
I'm stuck at the point where I can successfully build and deploy the sample project by executing the Traefik Start, Tomcat8-IDE Start, Deploy IDE and Deploy Workspace Agent commands.
But when it comes time to navigate to the newly created 2nd workspace by clicking on the link provided in the IDE to go to the newly created 2nd workplace instance...:
... I end up getting redirected to the following error page:
I suspect that there may be some kind of configuration problem with the sample plugin project, or configuration problem with keycloak, but I'm at the point where I don't really know how to proceed in terms of troubleshooting.
(Update: 2018/07/31)
At request of #kalrsson for more information, below is a screenshot of the che-public client configuration in my Keycloak instance.
(SOLUTION Update: 2018/08/01)
Thanks to #kalrsson for pointing me in the right direction.
At first I tried only adding the needed URL to the "Valid Redirect URIs" list. Doing so allowed me to get past the issue were I was receiving the error "Invalid parameter: redirect_uri". However, this only presented me with a blank page. On this blank page, when I inspect the web browser console, I noticed the following error:
From there, I also tried to add the needed URL to WebOrigins in KeyCloak as seen below.
Doing this finally allowed me to fully load and render the secondary workspace
Can you go to keycloak_ip:5050/auth, login as admin/admin, clients, che-public, and the IP you use to redirect urls and webOrigins?
So, you need to previewURL:port both to redirectURIs and webOrigins

404 error when accessing Struts2 Web application

I had created a web application and committed the code in CVS. The web application is working good in my machine. When i tried to import the same code in another machine i am getting 404 error. I tried importing the code via ftp from my machine to another machine and also checking out the code from CVS. But still i get 404 error.
I also noticed that there is no error that had been captured in the console or in the application's log. Could someone help me in how to proceed further in identifying the issue. Please let me know if i need to post any further details regarding the issue.
I notice this issue to be in the Websphere server. I tried hosting the application in different machine and found that in few machine the same code is working good and some it is not. Is there any way to compare the server configuration?
In the WAS server 6.1 i added the below value in the web container and the application worked fine.
Steps:
In the server admin console, click on Application Server--> --> Web container--> custom properties.
Add the name as com.ibm.ws.webcontainer.invokefilterscompatibility and value as true.
Thank you all for the response.

Resources