Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unshorten() logs UNABLE_TO_GET_ISSUER_CERT_LOCALLY error #8

Open
MrOrz opened this issue Sep 29, 2018 · 0 comments
Open

unshorten() logs UNABLE_TO_GET_ISSUER_CERT_LOCALLY error #8

MrOrz opened this issue Sep 29, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@MrOrz
Copy link
Member

MrOrz commented Sep 29, 2018

When resolving , such error will be logged:

[unshorten] https://fhy.wra.gov.tw/fhy/Disaster/FloodRescue { FetchError: request to https://fhy.wra.gov.tw/fhy/Disaster/FloodRescue failed, reason: unable to get local issuer certificate
    at ClientRequest.<anonymous> (/Users/mrorz/workspace/cofacts-url-resolver/node_modules/node-fetch/lib/index.js:1345:11)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  message: 'request to https://fhy.wra.gov.tw/fhy/Disaster/FloodRescue failed, reason: unable to get local issuer certificate',
  type: 'system',
  errno: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' }
[GET] https://fhy.wra.gov.tw/fhy/Disaster/FloodRescue - 26050 - 2279ms

The resolve result is fine, though:

"resolvedUrls": [
      {
        "summary": "經濟部訂「水災災害救助種類及標準」,規定災址處住屋(以臥室、客廳、飯廳及連棟之廚廁、浴室為限)淹水深度逾50公分以上且有居住事實之現住戶,每戶由直轄市、縣(市)政府發給最高新臺幣2萬元救助金。\n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        因補助標準涉及地方財政負擔,且淹水救助屬生活急難救助,非財產損失之填補,故該深度標準,本署歷經多年數次與各縣市政府共同研商,均維持現行標準。\n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        \n                                            (1)經濟部訂「水災災害救助種類及標準」,災址處淹水深度逾50公分以上,且有居住事實之現住戶,得檢具佐證受災及現居住事實之證明文件,每戶由直轄市、縣(市)政府發給救助金。\n                                        \n                                            (2)災址處如具前開居住及受災事實,得向區公所、市政府申領淹水救助金,但一門牌以一戶為限。\n                                        \n                                            (3)災址處非戶籍所在,並非申領救助金之要件。\n                                        \n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        依據經濟部訂「水災災害救助種類及標準」,淹水救助係對於淹水住戶之生活救助,並非財產損失之救助。\n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        \n                                            (1)淹水受災戶於災害發生後,向村(里)長、 村(里)幹事(必要時會同警察派出所員警及相關單位)申請勘查發生時間、種類、原因、區域、受災戶數、人口、傷亡人數及房屋損失數目等淹水災情,並作成紀錄。\n                                        \n                                            (2)鄉(鎮、市、區)公所報請直轄市、縣(市)政府派員前往督勘及審查是否符合救助規定後辦理撥款救助。\n                                        \n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        \n                                            租屋人由村(里)長或村(里)幹事或房東或鄰居認定是否有居住之事實。承租處與屋主自行協調淹水救助金,如仍認有爭議,建議洽當地調解委員會調解。\n                                        \n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        依水災災害救助種類及標準第四條第三項規定,住屋係以臥室、客廳、飯廳及連棟之廚廁、浴室為限,因淹水深度逾50公分,始符合受災事實之認定。但經直轄市、縣(市)政府認定與生活相關聯之屋內居住空間得視為住屋範圍。因此,車庫是否符合淹水救助範圍,地方政府可依前述原則認定。\n\n                                    \n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        \n                                            (1)對於淹水深度未達50公分之救助,內政部曾函釋,各直轄市、縣(市)政府得依給付行政原則,自訂救助規定。\n                                        \n                                            (2)莫拉克風災時,部分縣市政府有考量以民間捐款以慰助金之方式辦理賑助。\n                                        \n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        \n                                            (1)商家或工廠非屬住屋如臥室、客廳、飯廳及連棟之廚廁、浴室之範圍者,不在救助之列。\n                                        \n                                            (2)各直轄市、縣(市)政府得採自訂救助規定或簽報首長發放慰問金或運用民間捐款等方式辦理救助。\n                                        \n                                \n                            \n                            \n                            \n                                \n                                \n                                    \n                                        \n                                        (1)淹水救助係對於淹水住戶之生活救助,並非財產損失(如泡水車)之救助。",
        "canonical": "https://fhy.wra.gov.tw/fhy/Disaster/FloodRescue",
        "title": "經濟部水利署防災資訊網",
        "topImageUrl": "http://fhy.wra.gov.tw/fhy/images/FloodRescue/FloodRescue.jpg",
        "status": 200
      }
    ]
@MrOrz MrOrz added the bug Something isn't working label Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant