taipower-dreams-tester / dreams-cloud-joint-tester

Repository for the tester that verifies if a cloud PV monitoring system meet the requirement of Tai Power DREAMS system
11 stars 8 forks source link

找不到「以電號向DREAMS拿取案場電號ID」之API #24

Closed jp4jp4wu6 closed 3 years ago

jp4jp4wu6 commented 3 years ago

在本機模擬系統中我找不到該API的位置,以下是分別調用的URL位置 http://localhost/api/plants/plantMeterNo/88-88-8888-88-8/token=site_token_for_cloud_jointer

image

也從這裡得知了另一個方法 https://localhost/api/Gateways/getDnp3Addresses/site_token_for_cloud_jointer?access_token=site_token_for_cloud_jointer

image

localhost畫面 image

感謝你的回覆

Originally posted by @jp4jp4wu6 in https://github.com/taipower-dreams-tester/dreams-cloud-joint-tester/issues/2#issuecomment-791079844

taipower-dreams-tester commented 3 years ago

您好, 請試試看將URL改成: https://localhost/api/Plants/plantMeterNo/88-88-8888-88-8?access_token=site_token_for_cloud_jointer

jp4jp4wu6 commented 3 years ago

感謝回覆。

RareKung commented 3 years ago

@taipower-dreams-tester 你好

以電號向DREAMS拿取案場電號ID,使用以下URL https://localhost/api/Plants/plantMeterNo/88-88-8888-88-8?access_token=site_token_for_cloud_jointer 得到回饋如下附圖

image

請協助

taipower-dreams-tester commented 3 years ago

您好, 基於目前的機制,電號資訊要等到您按下"開始測試",進入有測項的頁面之後才會建立在DB裡面。 因此如果您在"開始測試"之前呼叫此API是一定會遇到這個錯誤的。

另外如果您是在"開始測試"之後呼叫而仍然得到該錯誤訊息,則需要檢查一下開始測試的流程是否有哪一步失敗喔。