gateway

AWS Api Gateway proxy resource using Cloudformation?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to proxy an S3 bucket configured as a website from an API Gateway endpoint. I configured an endpoint successfully using the console, but I am unable to recreate the configuration using Cloudformation. After lots of trial and error and guessing, I've come up with the following CF stack template that gets me pretty close: Resources: Api: Type: 'AWS::ApiGateway::RestApi' Properties: Name: ApiDocs Resource: Type: 'AWS::ApiGateway::Resource' Properties: ParentId: !GetAtt Api.RootResourceId RestApiId: !Ref Api PathPart: '{proxy+}'

API Gateway - ALB: Hostname/IP doesn't match certificate's altnames

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My setup currently looks like: API Gateway --- ALB --- ECS Cluster --- NodeJS Applications | -- Lambda I also have a custom domain name set on API Gateway (UPDATE: I used the default API gateway link and got the same problem, I don't think this is a custom domain issue) When 1 service in ECS cluster calls another service via API gateway, I get Hostname/IP doesn't match certificate's altnames: "Host: someid.ap-southeast-1.elb.amazonaws.com. is not in the cert's altnames: DNS:*.execute-api.ap-southeast-1.amazonaws.com" Why is this? UPDATE I

AWS API gateway body mapping template for dynamodb map

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to figure out how to insert dynamic data into a dynamodb table via an API Gateway in AWS. Currently I have a dynamodb table and an API endpoint setup that accepts a POST like so. POST https://{unique-id}.execute-api.us.east-1.amazonaws.com/notification/events { "reference_number": 99, "purchase_date": "1/1/2017" } I've setup a body mapping template in the API gateway to massage the data into the dynamodb. { "TableName": "Events", "Item": { "reference_number": { "N": "$input.path('$.reference_number')" }, "purchase_date": { "S": "

Pyspark: Exception: Java gateway process exited before sending the driver its port number

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run pyspark on my macbook air. When i try starting it up I get the error: Exception: Java gateway process exited before sending the driver its port number when sc = SparkContext() is being called upon startup. I have tried running the following commands: ./bin/pyspark ./bin/spark-shell export PYSPARK_SUBMIT_ARGS="--master local[2] pyspark-shell" with no avail. I have also looked here: Spark + Python - Java gateway process exited before sending the driver its port number? but the question has never been answered. Please help!

Laravel 502 Bad Gateway Error

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use Laravel 5.3 with the latest Homestead Setup. When I make a POST Request to my API, I get this error according to the log file: 2016/10/29 12:44:34 [error] 776#0: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.10.1, server: loc.medifaktor, request: "POST /api/v1/mfusers HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock$ I use POSTMAN to make the POST Request sending it to the URL: http://loc.medifaktor/api/v1/mfusers which is a homestead installation and runs

Simple Gateway Using Spring Cloud Gateway - ProxyExchange

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wanted to write a simple gateway using spring cloud, so that requests to a third party would appear to come from my service (as I have done so in the past with Zuul). The example on the github page and likewise in the official docs seems to be exactly what I want. i.e. a simple controller route to proxy all requests to a given route: @GetMapping("/proxy/path/**") public ResponseEntity<?> proxyPath(ProxyExchange<?> proxy) throws Exception { String path = proxy.path("/proxy/path/"); return proxy.uri(home.toString() + "/foos/" + path).get();

Api Gateway: AWS Subdomain for Lambda Integration

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm attempting to integrate my lambda function, which must run async because it takes too long, with API gateway. I believe I must, instead of choosing the "Lambda" integration type, choose "AWS Service" and specify Lambda. (e.g. this and this seem to imply that.) However, I get the message "AWS ARN for integration must contain path or action" when I attempt to set the AWS Subdomain to the ARN of my Lambda function. If I set the subdomain to just the name of my Lambda function, when attempting to deploy I get "AWS ARN for integration

Api Gateway cannot allow Access-Control-Allow-Origin

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This url is in AWS API Gateway with method get and stage is well deployed. And I enabled CORS following the aws document . Here are my steps to enable CORS. -Resource->action->enable CORS-> default setting ->enable CORS and replacing the CORS headers. There is no error log in CORS result. I am not a profesional web developer and my browser is safari. Here is my code to query " http://my.com " function request(idex) { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function() { if (xmlHttp.status == 200) callback(xmlHttp

reply-timeout meaning in tcp-inbound-gateway in spring integration

匿名 (未验证) 提交于 2019-12-03 00:58:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Spring integration tcp gateway can be setup as follows: <!-- Server side --> <int-ip:tcp-connection-factory id="crLfServer" type="server" port="${availableServerSocket}"/> <int-ip:tcp-inbound-gateway id="gatewayCrLf" connection-factory="crLfServer" request-channel="serverBytes2StringChannel" error-channel="errorChannel" reply-timeout="10000" /> <int:channel id="toSA" /> <int:service-activator input-channel="toSA" ref="echoService" method="test"/> <bean id="echoService" class="org.springframework.integration.samples.tcpclientserver

nginx django 502 bad gateway

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using uWSGI and Nginx to server up my Django website (1.4 version). My file structure is django_mysite/django_mysite/ in which there is a wsgi.py file. I keep getting 502 Bad gateway errors. I have other servers running of nginx and they are working fine. My nginx config: server { listen 80; server_name beta.example.com; keepalive_timeout 70; root /path/to/django_mysite/django_mysite; location root { root html; uwsgi_pass localhost:9000; uwsgi_param UWSGI_SCRIPT django_wsgi; include uwsgi_params; } location / { uwsgi_pass localhost:9000