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

mwoffliner 1.13.0 & OVM ubuntu 22.04.3 & mediawiki 1.17 - Status 404 #2006

Open
banO1ne opened this issue Mar 11, 2024 · 1 comment · May be fixed by #2053
Open

mwoffliner 1.13.0 & OVM ubuntu 22.04.3 & mediawiki 1.17 - Status 404 #2006

banO1ne opened this issue Mar 11, 2024 · 1 comment · May be fixed by #2053

Comments

@banO1ne
Copy link

banO1ne commented Mar 11, 2024

Hi all,
I'm new to this topic. I installed OVM ubuntu 22.04.3 and managed to get mwoffliner installed.

edvab@edvab:~$ mwoffliner --version
1.13.0

Everytime i try to generate ZIM file of our local private Wiki system / Version 1.17 (with user / passwd authentication) it get's me an error.

mwoffliner --mwUrl=http://192.168.1.115/mediawiki --adminEmail=[email protected] --verbose --redis=redis://127.0.0.1:6379 --mwWikiPath=/ --mwApiPath=api.php --mwUsername=user --mwPassword=password

(node:12347) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).

For more information, check the migration guide at https://a.co/7PzMCcy

(Use node --trace-warnings ... to show where the warning was created)

[log] [2024-03-11T15:19:39.498Z] Starting mwoffliner v1.13.0...

[info] [2024-03-11T15:19:39.501Z] Using custom flavour: no

[info] [2024-03-11T15:19:39.504Z] Downloading [http://192.168.1.115/mediawiki/api.php?action=query&meta=tokens&type=login&format=json]

[log] [2024-03-11T15:19:39.510Z] closing sanitize redis DB

[error] [2024-03-11T15:19:39.562Z] Failed to run mwoffliner after [0s]: {

"stack": "TypeError: Cannot read property 'tokens' of undefined\n    at MediaWiki.login (file:///home/edvab/.nvm/versions/node/v14.19.0/lib/node_modules/mwoffliner/lib/MediaWiki.js:62:66)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    at async Module.execute (file:///home/edvab/.nvm/versions/node/v14.19.0/lib/node_modules/mwoffliner/lib/mwoffliner.lib.js:105:5)",

"message": "Cannot read property 'tokens' of undefined"

}

[error] [2024-03-11T15:19:39.562Z]


Cannot read property 'tokens' of undefined


What might be the problem?

Thanks in advance.

@kelson42
Copy link
Collaborator

This seems to be a problem with the authentication indeed... we never used that feature, so it might be broken.

@kelson42 kelson42 added the bug label Jun 23, 2024
@kelson42 kelson42 linked a pull request Jul 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants