突然 API 在路由-nlp.js 中崩溃,收到 503 服务不可用:后端服务器已满负荷返回呼叫
Suddenly API crashes in routing-nlp.js, getting 503 Service Unavailable: Back-end server is at capacity back from call
我们的应用程序突然出现这个错误,而我们的相关代码没有进行任何更改。
Line: 23
Error: Unable to get property 'error' of undefined or null reference
在 Visual studio 中调试时也是如此。
Unhandled exception at line 23, column 387 in
https://js.api.here.com/ee/2.5.4/routing-nlp.js
尝试从 https://route.nlp.nokia.com/routing/6.2/calculateroute.json?routeattributes=shape&maneuverattributes=direction,shape&jsonAttributes=1&waypoint0=geo!59.61602,16.5143099&waypoint1=geo!59.61213,16.5190899&language=en-US&mode0=fastest;pedestrian;traffic:disabled;&app_id=[APPID]&app_code=[APPCODE]&xnlp=CL_JSMv2.5.4,SID_5C2F5886-805A-4FFF-A11C-021AE0F7586E
获得响应时
(Appcode 和 ID 被混淆了,因为我不确定来自 URI 的 post 有多糟糕)
下面是发生错误的文件的屏幕截图,以准确显示错误位置(黄色标记)。 d
未定义,导致崩溃。它是通过 d=a.response
较早设置的。但是正如您在屏幕截图中看到的那样 a
不包含 response
属性。
尝试 运行 在 Fiddler 中进行上述调用会产生响应:
503 Service Unavailable: Back-end server is at capacity
但这已经持续了好几天了,所以我倾向于 API 发生了一些我们不知道的变化,而不是他们 24/7 过度劳累一个星期。
我将尝试深入挖掘以找到负责此调用的代码并将其添加到此处,因为它可能是相关的。
我猜他们正在关闭旧的诺基亚域和过时的服务。在 4 月份的发布通知中,他们明确说明了以下内容:
Some of our customers are still using the Nokia domains
(...api.nlp.nokia.com) for accessing the HERE Platform for Business
services. Since April 2014 our documentations only lead to the HERE
domains (...api.here.com). Please be aware that Nokia/NLP domains will
not be supported any more by end of 2016. Until than all customers
latest have to switch to the HERE domains. The SSL certificates for
the Nokia/NLP domains will expire by end of Q1 2016 so after this date
SSL connections will create warning messages.
...
Since April 1, 2016, the Enterprise Router 6.2 is no longer supported.
No further maintenance and support will be provided, and the service
is deprecated. (April and earlier in February)
在对旧代码示例进行一些挖掘之后,我尝试将 API 重定向到当前的 7.2 路由器,但接口不同并且总是失败。所以似乎没有一个快速修复的解决方案......我想最后没有更多的空间,只能迁移到当前一代的 JS API (3.0) 并迁移到 7.2.
当前,此 503 行为再次出现。
原因:域
places.sit.ls.hereapi.com became
无效,已更改为 places.sit.ls.hereapi.com
我们的应用程序突然出现这个错误,而我们的相关代码没有进行任何更改。
Line: 23
Error: Unable to get property 'error' of undefined or null reference
在 Visual studio 中调试时也是如此。
Unhandled exception at line 23, column 387 in
https://js.api.here.com/ee/2.5.4/routing-nlp.js
尝试从 https://route.nlp.nokia.com/routing/6.2/calculateroute.json?routeattributes=shape&maneuverattributes=direction,shape&jsonAttributes=1&waypoint0=geo!59.61602,16.5143099&waypoint1=geo!59.61213,16.5190899&language=en-US&mode0=fastest;pedestrian;traffic:disabled;&app_id=[APPID]&app_code=[APPCODE]&xnlp=CL_JSMv2.5.4,SID_5C2F5886-805A-4FFF-A11C-021AE0F7586E
获得响应时
(Appcode 和 ID 被混淆了,因为我不确定来自 URI 的 post 有多糟糕)
下面是发生错误的文件的屏幕截图,以准确显示错误位置(黄色标记)。 d
未定义,导致崩溃。它是通过 d=a.response
较早设置的。但是正如您在屏幕截图中看到的那样 a
不包含 response
属性。
尝试 运行 在 Fiddler 中进行上述调用会产生响应:
503 Service Unavailable: Back-end server is at capacity
但这已经持续了好几天了,所以我倾向于 API 发生了一些我们不知道的变化,而不是他们 24/7 过度劳累一个星期。
我将尝试深入挖掘以找到负责此调用的代码并将其添加到此处,因为它可能是相关的。
我猜他们正在关闭旧的诺基亚域和过时的服务。在 4 月份的发布通知中,他们明确说明了以下内容:
Some of our customers are still using the Nokia domains (...api.nlp.nokia.com) for accessing the HERE Platform for Business services. Since April 2014 our documentations only lead to the HERE domains (...api.here.com). Please be aware that Nokia/NLP domains will not be supported any more by end of 2016. Until than all customers latest have to switch to the HERE domains. The SSL certificates for the Nokia/NLP domains will expire by end of Q1 2016 so after this date SSL connections will create warning messages.
...
Since April 1, 2016, the Enterprise Router 6.2 is no longer supported. No further maintenance and support will be provided, and the service is deprecated. (April and earlier in February)
在对旧代码示例进行一些挖掘之后,我尝试将 API 重定向到当前的 7.2 路由器,但接口不同并且总是失败。所以似乎没有一个快速修复的解决方案......我想最后没有更多的空间,只能迁移到当前一代的 JS API (3.0) 并迁移到 7.2.
当前,此 503 行为再次出现。
原因:域
places.sit.ls.hereapi.com became
无效,已更改为 places.sit.ls.hereapi.com