小编Paw*_*wel的帖子

随机状态代码:连接到lambda的AWS api网关上的502错误

我使用代理集成使用api网关暴露了多个lambdas.我不时会收到状态代码为502的奇怪错误.在lambda云监视日志中没有任何内容.下面我发布了api网关日志以获取示例请求:

(0cbbd9f5-f1bd-11e7-92c0-4d5d3b7d0380) Received response. Integration latency: 231 ms

(0cbbd9f5-f1bd-11e7-92c0-4d5d3b7d0380) Endpoint response body before transformations:
{
    "Message": "An error occurred and the request cannot be processed.",
    "Type": "Service"
}

(0cbbd9f5-f1bd-11e7-92c0-4d5d3b7d0380) Endpoint response headers: 
{
    Connection=keep-alive, 
    x-amzn-RequestId=0cbc9dee-f1bd-11e7-857b-91f7f814692c, 
    x-amzn-ErrorType=ServiceException, 
    Content-Length=86, 
    Date=Fri, 05 Jan 2018 02:06:32 GMT, 
    Content-Type=application/json
}

(0cbbd9f5-f1bd-11e7-92c0-4d5d3b7d0380) Execution failed due to configuration error: Malformed Lambda proxy response

(0cbbd9f5-f1bd-11e7-92c0-4d5d3b7d0380) Method completed with status: 502
Run Code Online (Sandbox Code Playgroud)

基本上似乎api网关无法到达lambda并且调用lambda返回:

(0cbbd9f5-f1bd-11e7-92c0-4d5d3b7d0380) Endpoint response body before transformations:
{
    "Message": "An error occurred and the request cannot be processed.", …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services aws-lambda aws-api-gateway

20
推荐指数
1
解决办法
2014
查看次数

使用android 4.4.2在Nexus 7(ME370T)上进行BLE

我一直试图使用来自sdk(sdk\samples\android-18\legacy\BluetoothLeGatt)的样本将BLE设备与我的Nexus 7(ME370T)配对.但我得到的信息"不支持Ble".我正在寻找解决方案,我只发现:

NB!带有Android 4.3的Nexus 7(2012)未启用BLE.要在此设备上使用BLE,您将需要Bluetooth Low Energy Enabler工具.此工作的先决条件是设备已植根,并且>已安装BusyBox应用程序.

我找不到有关4.4.2支持或任何4.4.2启用的信息.我才能找到

以防其他人在Nexus 7上搜索BLE - 这个ROM在4.4 KitKat上有一个工作BLE.几乎> Stock ROM称为'纯度'.PURITY ROM(链接:http://forum.xda-developers.com/showthread.php? t = 2222374 ).

问题是我需要将我的Nexus 7和4.4.2连接到另一个ROM来启用BLE吗?mod之后会起作用吗?

android bluetooth bluetooth-lowenergy nexus-7

14
推荐指数
1
解决办法
3万
查看次数

应用程序抛出web.config被修改的异常,但事实并非如此

我的asp.net web表单网站上的azure app服务面临着奇怪的问题.

得到例外:

ConfigurationErrorsExceptionSystem.Configuration.BaseConfigurationRecord in EvaluateOne

The configuration file has been changed by another program. (D:\home\site\wwwroot\web.config)

ConfigurationErrorsException: The configuration file has been changed by another program. (D:\home\site\wwwroot\web.config)
  Module "System.Configuration.BaseConfigurationRecord", line 72, col 0, in EvaluateOne
System.Object EvaluateOne(System.String[], System.Configuration.SectionInput, Boolean, System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object)
  Module "System.Configuration.BaseConfigurationRecord", line 515, col 0, in Evaluate
Boolean Evaluate(System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
  Module "System.Configuration.BaseConfigurationRecord", line 666, col 0, in GetSectionRecursive
Void GetSectionRecursive(System.String, Boolean, Boolean, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
  Module …
Run Code Online (Sandbox Code Playgroud)

c# webforms azure azure-web-app-service

9
推荐指数
1
解决办法
1298
查看次数