Closed uyuarasy closed 3 weeks ago
401
error means unauthorized, so it means you don't have the correct username/password set in Beanconqueror.
Go to Menu -> Settings and scroll down to Visualizer and re-enter your username (email) and password.
Forgot to mention my credentials are valid. Copied from password manager then typed by hand, getting the same error every time. It works when I login from a browser.
I don't know what to tell you, but they're not 😅 Maybe you have some whitespace somewhere. Also, goes without saying, but password is case sensitive.
The code is trivial and didn't change for ages: https://github.com/miharekar/visualizer/blob/main/app/controllers/api/base_controller.rb#L21-L26
What I added just now (after seeing your issue) is downcasing email, so that field is no longer case-sensitive.
Thanks for the quick replies, I'll try to debug then what could be the issue... 😄 Just tried out your REST API, fetched my previous shot without any issue. It looks like an invalid cred. issue indeed, as connection check (https://github.com/graphefruit/Beanconqueror/blob/master/src/services/visualizerService/visualizer-service.service.ts#L150) also fails, but it doesn't make any sense why...
Looking at BQ code, it is pretty naive:
Does your password include a :
by any chance? 🤔
Unfortunately it doesn't. The only special character is an exclamation mark, the rest are lower and upper-case letters and numbers.
Base64 encoded my plain text credentials based on how BQ does it and tried out in Postman, works as expected. Can it be some ioinc-related issue? Prob. this should be a question in the other thread... :)
Thanks for debugging with me @uyuarasy, I've made a silly mistake when refactoring 🤦♂️
There's a basic auth integration in Beanconqueror (v7.5.0, iOS 18.0.1) what was worked 2-3 days ago, now I'm getting a 401 response:
Opened an issue in their Discord first, but was informed it seems like an error on Visualizer end.