question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when logging in to Wekan REST API when using Sandstorm Wekan

See original GitHub issue

@kentonv

The problem is, on Standalone Wekan I can login to Wekan REST API using Wekan username and password, but on Sandstorm Wekan when I login with Google Auth, I get error with Sandstorm Webkey when I use Webkey as password. I don’t know what other password I would use.

I tried this way:

  1. On Wekan board create Webkey like in image by @ertanalytics https://github.com/wekan/wekan/wiki/Wekan-Sandstorm-cards-to-CSV-using-Python

Sure by using Python BeautifulSoup etc Wekan html and javascript could probably be parsed and used like in code above, but using REST API would be much nicer.

BTW @ertanalytics when I tried to use your code this way:

sudo apt install python-pip python-bs4 python-selenium python-pandas \
python-bson chromium-chromedriver chromium-browser-l10n

sudo pip install selenium --upgrade

sudo pip install splinter

And copied chromedriver from https://sites.google.com/a/chromium.org/chromedriver/home to my /usr/bin , I got this error, do you know solution to it?

$ python cards-to-csv.py 
Traceback (most recent call last):
  File "cards-to-csv.py", line 62, in <module>
    script = soup.find("script", attrs={'type' : 'text/inject-data'}).children.next()
AttributeError: 'NoneType' object has no attribute 'children'
  1. I tried to login to Wekan REST API on Sandstorm:
curl https://USERNAME:APIKEY@api-ADDRESS.SOMETHING.sandcats.io/users/login \
     -d "username=USERNAME&password=APIKEY"
  1. I get curl response:
{
  "error": "internal-server-error",
  "reason": "Internal server error"
}
  1. On Sandstorm Wekan board console I get this error:
Error: Unauthorized [Unauthorized]
    at Object.Authentication.checkUserId (server/authentication.js:6:21)
    at models/users.js:563:20
    at packages/simple_json-routes.js:98:9
  1. But if I try some other password, I get:
{
  "error": 400,
  "reason": "Match failed"
}

Using Wekan REST API on Sandstorm could make easier:

  • uploading data from scripts etc to Sandstorm Wekan
  • have mobile apps that use Sandstorm Wekan
  • integrations with Huginn
  • incoming Webhooks, etc.

Is there some documentation how with Meteor app like Wekan it would be possible to access info outside of grain, for example so that when importing attachments from Trello, some Sandstorm-compatible way could be used to download Trello attachments to Wekan?

I have not yet tried could EtherCalc API also be used on Sandstorm.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:59 (38 by maintainers)

github_iconTop GitHub Comments

1reaction
xet7commented, Oct 17, 2017

I think I could try to fix this by exposing /api at sandstorm-pkgdef.capnp file when I get some free time.

0reactions
ertanalyticscommented, Feb 5, 2019

Verified the export does show data again. The other API features do not appear to work including the user addition example, but at least the export is working again with the API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when logging in to Wekan REST API when using ...
The problem is, on Standalone Wekan I can login to Wekan REST API using Wekan username and password, but on Sandstorm Wekan when...
Read more >
Wekan REST API v5.13
When calling a production Wekan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you...
Read more >
CHANGELOG.md ... - PLMlab
Fix Error when logging in to Wekan REST API when using Sandstorm Wekan. Sandstorm API works this way: Make API key, and from...
Read more >
CHANGELOG.md · Gitee 极速下载/wekan - Gitee.com
Gitee.com(码云) 是 OSCHINA.NET 推出的代码托管平台,支持 Git 和 SVN,提供免费的私有仓库托管。目前已有超过 800 万的开发者选择 Gitee。
Read more >
CHANGELOG.md ... - Gitlab Adullact
Docs at https://github.com/wekan/wekan/wiki/REST-API-Cards · Fix cards export and add ... Chat using LDAP/SAML/Google/etc for logging into Rocket.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found