timriffe / TR1

Read Human Mortality Database and Human Fertility Database Data from the Web
10 stars 3 forks source link

HMDHFDplus not working with new mortality.org version #18

Closed artod83 closed 1 year ago

artod83 commented 2 years ago

Hello, HMDHDFplus (just updated today to 1.9.18) is not working with the new version of the mortality.org website. In particular, the line:

path <- paste("https://www.mortality.org/hmd/", country, "/STATS/", "Mx_1x1.txt", sep = "") (here I have the rates, because its called from hmd.mx, but readHMDweb doesn't work either)

should be:

path <- paste("/File/GetDocument/hmd.v6/", country, "/STATS/", "Mx_1x1.txt", sep = "")

Additionally, Curl fails with a 443 SSL error:

Error in function (type, msg, asError = TRUE) : Unknown SSL protocol error in connection to www.mortality.org:443

timriffe commented 2 years ago

Hi @artod83 , I suspect this is a similar issue to that reported in issue 17, which was resolved with a simple Rstudio restart. Please check that version 1.9.18 is the one loaded and is producing this problem.

In short, we do not refer to the new HMD website, but to a copy of the old one with a slightly different url, which still uses your old HMD credentials. Data there will be updated in parallel to the new website, and HMDHFDplus will use this old copy for data extraction until HMD releases its API.

Please double check that the error is persistent after clear caches, etc.

Thanks, Tim

artod83 commented 2 years ago

Thanks, it works now. It’s the demography package that it’s not working, so I’ll switch entirely to HMDHFDplus. Thanks! Best regards,

Matteo Dimai

Da: Tim Riffe @. Inviato: giovedì 23 giugno 2022 09:55 A: timriffe/TR1 @.> Cc: Dimai Matteo @.>; Mention @.> Oggetto: Re: [timriffe/TR1] HMDHFDplus not working with new mortality.org version (Issue #18)

Hi @artod83https://github.com/artod83 , I suspect this is a similar issue to that reported in issue 17https://github.com/timriffe/TR1/issues/17, which was resolved with a simple Rstudio restart. Please check that version 1.9.18 is the one loaded and is producing this problem.

In short, we do not refer to the new HMD website, but to a copy of the old one with a slightly different url, which still uses your old HMD credentials. Data there will be updated in parallel to the new website, and HMDHFDplus will use this old copy for data extraction until HMD releases its API.

Please double check that the error is persistent after clear caches, etc.

Thanks, Tim

— Reply to this email directly, view it on GitHubhttps://github.com/timriffe/TR1/issues/18#issuecomment-1164077617, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGEPOUSVTQNTPYNMT2X2XSLVQQJ35ANCNFSM5ZR2SBGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

AVVISO DI RISERVATEZZA Informazioni riservate possono essere contenute nel messaggio o nei suoi allegati. Se non siete i destinatari indicati nel messaggio, o responsabili per la sua consegna alla persona, o se avete ricevuto il messaggio per errore, siete pregati di non trascriverlo, copiarlo o inviarlo ad alcuno. In tal caso vi invitiamo a cancellare il messaggio ed i suoi allegati. Grazie. CONFIDENTIALITY NOTICE Confidential information may be contained in this message or in its attachments. If you are not the addressee indicated in this message, or responsible for message delivering to that person, or if you have received this message in error, you may not transcribe, copy or deliver this message to anyone. In that case, you should delete this message and its attachments. Thank you.