-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unknown Error Occurred #2
Comments
Hi there, I wasn't expecting anybody to use this integration besides myself. I'm a noob when writing Home Assistant integrations, I know some basic Python but usually for scripting, so this whole repository is probably not top-notch. When do you see that error? Have you been able to go throw the config flow? Please enable logging, I did add some error messages to the code, so logging is the best way to go. |
Hello! I was very excited to stumble across this integration - the only others I could find have been archived and I couldn't seem to make them work. I use Google Keep quite a bit, and this would be a great addition to my Home Assistant.
Here's what I'm running into: I enter my info into the configuration wizard screen, hit Submit, and that's where the error shows (see picture below).
![image](https://github.com/fcastilloec/gkeep-list-sync/assets/80721642/381410ab-b60c-4699-91c6-2481110061cf)
I checked the logs, and here is what I found:
2023-09-24 13:29:53.050 ERROR (MainThread) [custom_components._gkeep_list_sync.config_flow] Login error: ('BadAuthentication', None)
I'm a noob when it comes to Home Assistant, so you'll have to excuse my inexperience. Let me know if you need more info from me or what I can do to help. I really appreciate your assistance on this!
Thanks,
Ethan
…________________________________
From: Felipe Castillo ***@***.***>
Sent: Sunday, September 24, 2023 12:33 PM
To: fcastilloec/gkeep-list-sync ***@***.***>
Cc: ethanblom ***@***.***>; Author ***@***.***>
Subject: Re: [fcastilloec/gkeep-list-sync] Unknown Error Occurred (Issue #2)
Hi there, I wasn't expecting anybody to use this integration besides myself. I'm a noob when writing Home Assistant integrations, I know some basic Python but usually for scripting, so this whole repository is probably not top-notch.
I can help figure out what's happening, but not sure how much help I can be.
When do you see that error? Have you been able to go throw the config flow? Please enable logging, I did add some error messages to the code, so logging is the best way to go.
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATH3N2XWOUQKIT3VHYODTV3X4BVIJANCNFSM6AAAAAA5ESWAVE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The error "BadAuthentication" happens because your username or password is wrong. It can also happen because you're using two-factor authentication and this integration doesn't support it. FYI, I think you removed the link to the image you uploaded, so it can't be seen. Try editing your message and re-adding it, and keep the link that GitHub generates when you add the image. |
I tried signing in with the app password prior to this as well, but I tried it again to be sure, and I'm still getting the same "unknown error" message and same log error. |
I really don't know what's going on. From the error message, I think this is coming from the I could also create a small Python script that uses |
I also found this issue kiwiz/gkeepapi#81 that looks similar to what you're seeing. I know Home Assistant recently upgraded their Python version and it might be the reason why this is not working. Maybe, I could modify the code to accept a token instead of a password, and the problem should be fixed. This will make it so that you will have to run a separate script to generate this token, which requires the user to have Python installed. I also see that a Docker container can be used, which is probably the best way to make sure dependencies are met and nothing weird happens, and of course means that the user has to have Docker installed. You could install an old version of Home Assistant, probably |
Thank you for the suggestions. I tried disabling two-factor authentication as well as installing a few different old versions of Home Assistant and I'm still getting the same error message. |
I also get an authorization error. fcastilloec , your integration will be very useful!!! |
Because this issue depends on the kiwiz/gkeepapi#144 to be fixed, I can only do a partial workaround. |
@mistikdonbass @ethanblom can you guys test the new commits? |
Does gkeepapi have to be installed? Now I don’t have it installed, there is an authorization error. |
@mistikdonbass |
I've updated the integration and tried using an app password, as well as turning off 2-step verification, but with both ways I continue to get a Bad Authentication error. |
I'm sorry but I can't replicate this anymore. Having a fresh installation of Home Assistant, with only this integration enabled, and everything works as it should. Here's a video of the integration running on said fresh installation of Home Assistant. Segmented_video.mp4 |
What should I be using for the username in this configuration? I assumed it was the username (@gmail.com email address) that I would typically use to sign into my google keep account. I notice that you didn't use an email address in the video you shared, am I doing this step incorrectly? |
I used my username on that video, which is your email address without the @
gmail.com part. I'll give it a try using the full email address just to
double check but there shouldn't be a problem if you include the @ part.
…On Thu, Nov 2, 2023, 13:46 ethanblom ***@***.***> wrote:
What should I be using for the username in this configuration? I assumed
it was the username ***@***.*** email address) that I would typically use
to sign into my google keep account. I notice that you didn't use an email
address in the video you shared, am I doing this step incorrectly?
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJYUEW2BWQR7DEGFJVO2CLYCPL6TAVCNFSM6AAAAAA5ESWAVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJRGI2TCOBYHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
I've tried my username without the @gmail.com part and that didn't seem to work either. I wonder what I'm doing wrong. Any troubleshooting suggestions you have for me since it seems to be working on your end and not on mine? |
Maybe we are missing some components? |
I don't know what's happening. I've tried using a Google account that doesn't have 2-step verification (using the actual password) and it works. I've tried using another account with 2-step enabled and an app password. I've tried with and without the @gmail.com Can you check your logs? If nothing is showing there, maybe enable logging for everything, eventually, something meaningful will show. |
I tried completely removing the gkeep_list_sync folder from my custom_components folder, fully restarting Home Assistant, redownloading the new gkeep_list_sync folder from github and placing in custom_components folder, fully restarting Home Assistant, but I am still seeing the error. |
I'm also having this problem: I tried using the username with and without @gmail.com and the app password with and without spaces. It all results in the same error. |
For those still having issues i opened up a pr (#5 ) for a possible workaround that should help. Assuming @fcastilloec is open to contributors this is what allowed me to get a pretty neat workflow working |
I tried your fork utilizing the master token method and it works fine for me. |
Agreed, it’s far from ideal considering the access this token has, but for some reason Google seems to have checks against the device that affects certain accounts. The only way I am able to get a master token personally is by spinning up a docker container and running some cli commands like I posted in my pr. Super weird for sure. |
I tried multiples times, and I didn't manage to get a master token. Is
there a "easy" way?
…_____________
Pedro Roque
Em qui., 28 de dez. de 2023 22:06, jtholen001 ***@***.***>
escreveu:
Agreed, it’s far from ideal considering the access this token has, but for
some reason Google seems to have checks against the device that affects
certain accounts. The only way I am able to get a master token personally
is by spinning up a docker container and running some cli commands like I
posted in my pr. Super weird for sure.
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARWS4BJIN4M3A6ZF3U5YZ2TYLXUM5AVCNFSM6AAAAAA5ESWAVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGUZDAMRQHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
If you go to this link (it’s my new code I still have in review) I updated the docs to call out how to get the master token only if you cannot login with an app password. |
Shouldn't this issue be marked as opened as it is still being investigated? |
There's a new version of this integration based on the work of @jtholen001 (Thanks for your contribution!) 🥳 The new version can accept passwords or tokens, and it also allows you to add multiple lists (from the same or different accounts). This can be helpful if multiple people have their own "Shopping" lists, and all of them will get merged into Home Assistant. Regarding the docker container to retrieve a Master Token. Please direct any questions to @jtholen001, he kindly provided the code to work, but support it is beyond the scope of this project. |
There is another repo that now supports google keep - > HA todo, multi user, multi list, event notifications here. https://github.com/watkins-matt/home-assistant-google-keep-sync |
I’ve installed the integration, but when I go to submit the configuration info, I get a “Unknown Error Occurred” message.
The text was updated successfully, but these errors were encountered: