2016-08-04 37 views
0

我們突然從我們的應用程序中得到這個錯誤,而沒有改變我們的相關代碼。突然API在routing-nlp.js中崩潰,得到503服務不可用:後端服務器從回調容量

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)

下面是截圖發生錯誤的文件恰好顯示在哪裏(黃色標記)。 d未定義,導致崩潰。它早先通過d=a.response設置。但正如你在屏幕截圖a中看到的那樣,不包含response屬性。

Debugging in Visual Studio

試圖運行在提琴手上述調用產生的響應:

503 Service Unavailable: Back-end server is at capacity

不過,這已經持續了好幾天,現在,所以我傾向於認爲一些API中發生了變化我們沒有意識到,而不是他們一週七天工作過多。

我將嘗試挖掘並找到負責此調用的代碼,並在此處添加它,因爲它可能相關。

回答

1

我猜他們正在關閉舊的諾基亞域名和過時的服務。在四月發佈通知他們明確指出:

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。

+0

哦,當。我完全錯過了那一點信息,但這是我害怕考慮我得到的錯誤...感謝您清理了一些東西! – Habhome

+0

我在這裏得到同樣的錯誤域: http://image.maps.cit.api.here.com/mia/1.6/mapview?app_id=XXX&app_code=YYY&pview=DEF&ml=en&h=200&w=500&c=16.29905101458183, 10.021360516548159&nocrop&t = 0&u = 100000&z = 5 也從當前文檔鏈接不起作用: https://developer.here.com/rest-apis/documentation/enterprise-map-image/topics/quick-start-show -default-location.html –