Open shaktee opened 3 years ago
I was finally able to get this working. I know that there's an unmerged PR that might have fixed this but it seems stuck in limbo. here's how I fixed it (it gets dirty):
https://www.googleapis.com/auth/presentations, https://www.googleapis.com/auth/drive
(might require more. I added a bunch but I think these 2 are the only ones needed)bin/md2gslides.js
lines 129 and 130:
const options = {
clientId: 'YOUR CLIENT ID',
clientSecret: 'YOUR CLIENT SECRET',
filePath: STORED_CREDENTIALS_PATH,
prompt: prompt,
};
let me know if that works for you. I'm happy to help, since I rely on this pretty heavily and can imagine others might too.
thanks @jonathan-chin it works for me. I wonder why clientSecret and clientId are hardcoded..
Hi just want to have a quick follow up on this thread. I tried the similar approach mentioned above, which let me enter this stage
After checking both permission, the page will be redirected to a page to copy the authorized code.
But every time I paste the code to the terminal, I will get the following errors:
Unable to generate slides: Error: EAGAIN: resource temporarily unavailable, read ... at generateSlides (....) { errno: -35, syscall: 'read', code: 'EAGAIN' }
Wonder anyone has any idea about how to overcome/walk around this ....?
Ok, I ran into this last night, dug around, and found out a few things:
v0.5
, you're not installing the fix.npm run compile
, then replace what's in your /usr/local/bin
(or wherever you've got it installed) with the latest one which s/b in your bin
after compilation.:-)
No updates on this? Seems fixable, no?
Yes, it's fixable, but the maintainer is pretty busy these days, and there are 2 workarounds: a) the repo has working code or b) patch the release you installed w/npm
. So just follow the instructions above until they get a chance to "cut" a new release (tag).
Also you can npm-install googleworkspace/md2googleslides
instead of md2gslides
. That will pull the latest from GitHub, and it seems to work correctly. Given that the instructions in the README are now invalid, I'd edit them to change the installation method until a release can be made.
2. googleapis
I still met the "This app is blocked" issue just as the snapshot that shaktee posted.
Is there anyone who can help to identify the possible mis-configurations from my below steps? Thanks...
Please read the comments above. The code works; there's no issue with your permissions. It's just that you're using the code from 2019. The maintainer is too tied up to cut another release, so use one of the alternative methods described in other comments for now.
I am unable to get beyond the authorization part. I'm using my personal account and it has never previously reported any blocked apps.