Code Monkey home page Code Monkey logo

Comments (44)

Max604 avatar Max604 commented on July 20, 2024 8

Does this mean there is alternative solution right now? And if so, how can we set it up for now. Thanks!

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024 7

could you please consider writing up the steps?

Seems like the best solution at this point. Obviously, Google can't be relied upon…

I'll think about the best way to do this. It'd probably be better to enable to workflow to use external credentials, rather than the built-in ones, instead of requiring users to build it for themselves.

Perhaps it will be possible to paste the JSON file into the configuration sheet, which would probably be the simplest solution for users.

from alfred-gcal.

yosevu avatar yosevu commented on July 20, 2024 2

Perhaps it will be possible to paste the JSON file into the configuration sheet, which would probably be the simplest solution for users.

Yes please 🙏

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024 2

And if so, how can we set it up for now.

Yeah, you "just" need to set up your own Google project, get some credentials and build the workflow.

Sorry I haven't released a new version that can use your own creds yet: the coding is easy; I just don't want to write the bloody instructions for setting up a Google project.

For the build itself, the workflow is built with mage. You need to make a copy of secret.go called secret_private.go with the build tag // +build private and fill in the missing values, then run mage link in the project root directory to build the workflow and symlink it to your workflows folder, or mage dist to build an .alfredworkflow file.

The comment in secret.go saying you only need read permission is incorrect if you'd like to be able to add new events using gnew.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024 2

Just give word on a Patreon or get hooked up with github sponsors - and I'm there

Very kind of you. I have Paypal if that's an acceptable way to buy beer.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024 1

Thanks!

There should be an "Advanced" link at the bottom under the scary warning, via which you can still sign in. Also make sure you're using the latest version. I had to change the workflow's client ID (and may yet need to do it again…).

I'm trying to get the workflow verified, but Google keep rejecting it, most recently with this gem:

We detected the following issue(s):

Homepage contains "google" in the domain
homepage_url: https://www.deanishe.net/alfred-gcal-workflow/

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024 1

I withdraw the above statement: The workflow is clearly still not working for a lot of people.

I'm at a loss as to what I can do to fix it. I've tried contacting Google, but as everyone knows, that's like banging your head against a wall.

The developer console says the workflow still needs to be verified:

fucking-google-1

But the "consent screen" page says it's fine:

fucking-google-2

And doesn't allow me to (re)submit the workflow for verification:

fucking-google-3

from alfred-gcal.

eli-jordan avatar eli-jordan commented on July 20, 2024 1

My workplace is a gsuite customer. I’ll check and see if I can get a support case opened for this.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024 1

Thanks, @eli-jordan. Your getting involved prompted me to go back and have another look at the Developer Console. Instead of the profoundly useless "verified and not verified", it now says there may be a problem with the scopes.

I'll release a new version in the next day or so with different scopes, and hopefully that one will work. It works for me, but that doesn't really tell me anything because it always did…

from alfred-gcal.

 avatar commented on July 20, 2024 1

@deanishe I added a new account and a new event with gnew it all works :)

from alfred-gcal.

GregPetrov avatar GregPetrov commented on July 20, 2024 1

Thanks for fixing of Google Sign In and all your efforts!
Now it works perfect for me.
That is fantastic Alfred workflow!

from alfred-gcal.

nickgraynews avatar nickgraynews commented on July 20, 2024

Thanks for a quick reply!
I don't get that "Advanced" link at the bottom of the scary sign in warning, so I am unable to use the Workflow.
Sorry to hear about the Google rejections. That sounds incredibly frustrating.
I really appreciate you working on this and troubleshooting in your spare time! THANK YOU!!

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

It's seems Google have rectified their rectum–head relationship.

EDIT: No, they haven't

from alfred-gcal.

yosevu avatar yosevu commented on July 20, 2024

Oh wow, that is frustrating. Are you able to use this workflow yourself @deanishe by getting to the screen with the "Advanced" button? Maybe there is another workaround?

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

Are you able to use this workflow yourself

Yes, thanks. It works perfectly for me…

gcal-login

In any case, I'd just build it with a different client ID. I don't care about the warnings. The problem is that it's fairly complicated to get everything set up to build the workflow.

Maybe there is another workaround?

Don't know. If any users have a paid Google account, you could try contacting support. They're pretty responsive to paid users.

from alfred-gcal.

WybeBosch avatar WybeBosch commented on July 20, 2024

Just to clarify that the error happens After having chosen an account to login, and that they have indeed removed the "advanced" button text.

alfred gcal auth issue

from alfred-gcal.

pickettj avatar pickettj commented on July 20, 2024

Also love this workflow; had it working at first, but now I get a 401 error: "Error: deleted_client The OAuth client was deleted."
Perhaps this is part of the same issue, but, either way, is it possible to fix?

from alfred-gcal.

jayroh avatar jayroh commented on July 20, 2024

@pickettj 👉 #53

But then you'll probably run into the same issues as the above in this thread

from alfred-gcal.

pickettj avatar pickettj commented on July 20, 2024

Thanks, @jayroh ! However, as you anticipated, I do indeed run into the same issue...

from alfred-gcal.

nilsdrews avatar nilsdrews commented on July 20, 2024

I guess this has something to do with gcal in the path maybe? Can you modify this to something else and try again? I would love to get this added ...

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

I guess this has something to do with gcal in the path maybe?

No. It's Google being shit.

from alfred-gcal.

AdamBD avatar AdamBD commented on July 20, 2024

Maybe there is a way to create some list of signatures to submit a request for this allowance. Its an amazing utility here.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

If you have a paid Google account, you could try contacting support, I suppose. My comment above contains the salient details.

from alfred-gcal.

dergachev avatar dergachev commented on July 20, 2024

@deanishe for those of us willing to try building it on our own and setting up our own credentials, could you please consider writing up the steps? Ideally include whatever go compilation tools you'd need. I'm excited about this tool, I'm drowning in google calendar tabs.

from alfred-gcal.

kmf avatar kmf commented on July 20, 2024

watching

from alfred-gcal.

dfriedm avatar dfriedm commented on July 20, 2024

Jumping on the bandwagon here, yaz please!

from alfred-gcal.

AlaaSaadAbdo avatar AlaaSaadAbdo commented on July 20, 2024

Hi! First of all thanks for the effort, I really like the workflow when it was working. I have a different set of problems. which is that my google account is managed since it belongs to an organization which means I can't set up my own projects in google.

Maybe this is an option, would it be possible to get the events from ical? and we sync ical to our google calendar? I understand that this might take a lot of time and effort. I just was wondering if it was an option.

Cheers!

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

Maybe this is an option, would it be possible to get the events from ical?

This is something I'm looking into. This whole fiasco has put me right off using Google's APIs.

I've figured out the tricky part (getting the calendar events) already.

from alfred-gcal.

AlaaSaadAbdo avatar AlaaSaadAbdo commented on July 20, 2024

I'm not sure this is the right place to post this but I just tried the workflow
(.vc) that you linked in your last comment and it said no access to the calendar although alfred has access to the calendar and calendar access works with other workflows

from alfred-gcal.

Max604 avatar Max604 commented on July 20, 2024

I've set up the build myself with mage but when try 'gcal' it keeps logging me in every single time and I have to press I trust this unverified app. The problem is alfred-gcal isn't remember the logged in account and isn't showing anything from the gcal itself.

How can I go about fixing this? Is it something in my Google Project settings?

The local website says for me 'ok'

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

@Max604: I have no idea. You aren't giving me enough information to work with. You must at least post the contents of the log file (gdate workflow:log).

The "ok" means the workflow has received the access tokens, but perhaps you didn't give your app sufficient permissions.

You can enter gdate workflow:cache in Alfred to open the cache directory and check the credentials have been cached.

from alfred-gcal.

Max604 avatar Max604 commented on July 20, 2024

Interestingly after a few retries it has decided to 'just' work. I'll let you know if it happens again with the relevant logs and such.

from alfred-gcal.

eli-jordan avatar eli-jordan commented on July 20, 2024

@deanishe Have you tried going through the verification process?

There are a few requirements like needing to have docs on a domain you have proved to google that you own and such.

Its a PITA, but would be super valuable. This tool is excellent, and it would be a shame for it to not get the use it deserves :)

from alfred-gcal.

eli-jordan avatar eli-jordan commented on July 20, 2024

Hmm... actually, I just realised the link I posted is for apps-script not sure if the requirements are the same

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

@deanishe Have you tried going through the verification process?

Yes. Read the thread. I posted the bullshit answers Google is giving me 5 months ago.

If you have a paid Google account, then please contact their support and ask them why they aren't letting you use an application that they say is verified. They sometimes listen to people with GSuite accounts.

from alfred-gcal.

eli-jordan avatar eli-jordan commented on July 20, 2024

@deanishe Google support said that you should contact [email protected] to find out why the app is not considered verified. I have asked them to follow up on the reason using internal channels.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

Could somebody else test this build?

If it works okay, I can make it an official release.

from alfred-gcal.

 avatar commented on July 20, 2024

@deanishe I just downloaded it and it works for me :)

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

@AlaaMansour Were you able to add a new account? Did you try adding a new event with gnew?

I think if you can add a new account, then it should be working okay.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

Awesome, I'll make a new release, then.

from alfred-gcal.

eli-jordan avatar eli-jordan commented on July 20, 2024

@deanishe Thanks for the update, it seems to have fixed the verification error. I'm now seeing an error after approving access when redirected back to http://127.0.0.1:61432/?state=... I receive an error saying "bad state"

EDIT: I found a bunch of gcal processes running. After killing those, the redirect to localhost returned ok. However, the workflow still indicates that there is no account configured. Where can I look for logs to troubleshot this issue?

EDIT 2: After trying it a few more times. It eventually worked. I think there is a bug here, but not related to the issue reported in this issue.

from alfred-gcal.

deanishe avatar deanishe commented on July 20, 2024

You can check the log file by entering gdate workflow:log into Alfred.

I think there is a bug here, but not related to the issue reported in this issue.

What's most likely happening is that you have multiple authorisation processes running, but only the first one can grab the local port for the HTTP server. So Google is passing back the auth code for auth request Y to auth process X, and it consequently fails to retrieve the access tokens because it's using the wrong code for that request.

I'll add a timeout on the local auth server, so it doesn't hang around forever waiting for a code, but that will only make it less buggy.

The only real fix would be to split the authentication flow into a client-server system with a stateful server that can manage multiple auth requests at the same time. And that's overkill for a workflow, imo.

from alfred-gcal.

eli-jordan avatar eli-jordan commented on July 20, 2024

that's overkill for a workflow, imo.

Agreed

I don't think its a big problem, because if you get through the process once it doesn't affect day-to-day use.

Thanks again for the work on this workflow and fixing the verification issue 😀

from alfred-gcal.

jayroh avatar jayroh commented on July 20, 2024

Holy crap, everything is working! Thank you so much @deanishe

Just give word on a Patreon or get hooked up with github sponsors - and I'm there. I realize how much of a pain in the ass this was so you deserve the proper support 😄

Thank you thank you!

from alfred-gcal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.