这里 Api "errorMessage": "Cannot read property 'status' of undefined",
HERE Api "errorMessage": "Cannot read property 'status' of undefined",
我刚刚使用
AWS 无服务器应用程序存储库。这使用 HERE api.
在 API 网关中使用以下 url 测试 api
https://geocode.json.search.hereapi.com/6.2/geocode.json?apikey=XXXXX&searchcode=glasgow
这是由 AWS
生成的 lambda 代码生成的
我看到了错误
{
"errorType": "TypeError",
"errorMessage": "Cannot read property 'status' of undefined",
"stack": [
"TypeError: Cannot read property 'status' of undefined",
" at getData (/var/task/geocode.js:38:36)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
我可能犯了一个简单的错误,但有人可以告诉我如何解决这个问题。我在文档等中看不到原因所在。
谢谢
检查你的 lambda 函数,你有一个未定义的对象:
在访问状态属性之前,您的对象未定义:yourObject.status
我刚刚使用 AWS 无服务器应用程序存储库。这使用 HERE api.
在 API 网关中使用以下 url 测试 api https://geocode.json.search.hereapi.com/6.2/geocode.json?apikey=XXXXX&searchcode=glasgow 这是由 AWS
生成的 lambda 代码生成的我看到了错误
{
"errorType": "TypeError",
"errorMessage": "Cannot read property 'status' of undefined",
"stack": [
"TypeError: Cannot read property 'status' of undefined",
" at getData (/var/task/geocode.js:38:36)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
我可能犯了一个简单的错误,但有人可以告诉我如何解决这个问题。我在文档等中看不到原因所在。
谢谢
检查你的 lambda 函数,你有一个未定义的对象: 在访问状态属性之前,您的对象未定义:yourObject.status