问题描述
这是我的makeRequest函数。基本的axios包装器
console.log('Request Options',requestOptions)
return axios({...requestOptions}).then(response => {
console.log('Request Success',response.data)
return response.data
}).catch(error => {
console.error('Request Failed:',error)
throw new Error('Unable to process request:',error.message)
})
}
以上内容托管在docker的express应用中。这是在本地运行。我有一个简单的post
lambda whihc使用serverless-offline
插件以离线模式运行
severless上的此离线lambda在以下位置运行:
Serverless: Routes for generate:
Serverless: POST /
Serverless: Offline listening on http://localhost:3000
问题:我无法从我的dockerized express应用中获取此lambda。我在docker的配置中缺少什么吗? docker app中的错误I get is standard ECONREFUSED at localhost:3000
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)