name-suggestion-index
name-suggestion-index copied to clipboard
Invalid crsf token when running Wikidata script
When running npm run wikidata
, it keeps giving me this error about an invalid crsf token:
I haven't changed my Wikibase password and can still access/modify Wikidata through the web interface
oh thats weird.. I will check if I get this too
wikibase-edit
can be updated to v6, maybe I should do that.
wikibase-edit was updated to 7.0.3 in #9353. It hasn't fixed it, nor if we revert to 6.0.4 gives me "403 Forbidden".
This suggests we should be using OAuth, but NSI would have to apply for that.
I was able to setup an OAuth key and used the template for using OAuth, but now I'm getting a different error:
Here's what my secrets file looks like:
{
"wikibase": {
"oauth": {
"consumer_key": "••••••••••",
"consumer_secret": "••••••••••",
"token": "••••••••••",
"token_Secret": "••••••••••"
}
}
}
@arch0345 possible typo in "token_Secret": "••••••••••"
? Template says it should be "token_secret"
.
@arch0345 possible typo in
"token_Secret": "••••••••••"
? Template says it should be"token_secret"
.
:facepalm: Thanks for pointing this out, this seems to fix it!