Open ronaldtse opened 7 months ago
@ronaldtse the relaton-un crashes when fetching anything because they have changed the authentication workflow. Before the changes, the hidden inputs were used to pass a token to a client. After the changes, the Javascript code takes a token somewhere and adds it to the header. I'm trying to understand where the token is taken.
The new authentication workflow uses a WebAssembly function that calculates tokens from the current date and time. The WebAssembly function has about 3000 lines of code and calls some JS functions back. I can't predict how long it may take to understand the algorithm and reproduce it in Ruby. So I temporarily disabled searching UN documents. For any UN references, this gem returns not found message.
$ relaton fetch "UN/ECE"
Resolving dependencies...
No matching bibliographic entry found
@andrew2net let us just contact the UN Docs people and get a way to fetch.
Presumably related to this, https://github.com/metanorma/metanorma-ietf/issues/205
"UN/EDIFACT, D14.A" was failing to fetch, and now is returning an empty document. This is in the wild from a user.
We are in contact with the UN Docs team to see how we can obtain access again.