Comments (9)
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):
- follow the installation and usage, specifically to get OAuth client credentials.
- request the following permission scopes:
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) - edit the source code:
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.
from md2googleslides.
Ok, I ran into this last night, dug around, and found out a few things:
- @jonathan-chin 's fix is legit. In fact, I told users the same thing last year, so it's an "old" fix.
- I also fixed this bug and the original one with this patch in Apr 2020 which was finally merged Jun 2021.
- However because the latest release tag is still
v0.5
, you're not installing the fix. - IOW, @zseta the reason why it's hardcoded requiring the fix-by-hand, is because you've installed the version from Apr 2019, not from Jun 2021 or newer.
- Bottom-line: you either go w/the patch by hand, or you clone the repo, compile with
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 yourbin
after compilation. - This bug will likely be closed as a dupe of the original one.
- I pinged the maintainer last night and asked them to rev the version, so hopefully this will be a non-issue soon, but if not, at least you know what to do now.
:-)
from md2googleslides.
thanks @jonathan-chin it works for me. I wonder why clientSecret and clientId are hardcoded..
from md2googleslides.
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 ....?
from md2googleslides.
No updates on this? Seems fixable, no?
from md2googleslides.
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).
from md2googleslides.
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.
from md2googleslides.
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...
What I tried:
- OAuth client credential is generated.
- Permission scope is added(I opened all permission scopes for testing the OAth issue).
- bin/md2gslides.js is modifed.
- client_id.json file is copied to .md2googleslides folder.
More about my config:
- inorder to get the credential, I configured the consent screen which requires a https service:
- For creating the OAuth Client ID, I used the "desktop app/web application" rather than "Computer Application" as mentioned in the README.md. Because I cannot find the item.
More about my env:
- A personal gcp account.
- I ran the code from my local pc, while blocked at the "This app is blocked" page.
- I then ran the code from the server which I run for the https service(to ensure the origin is the same as the domain i used for the consent screen), still not work.
from md2googleslides.
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.
from md2googleslides.
Related Issues (20)
- Dependency Dashboard
- Thanks
- HTML Element: img
- file.io: Too many requests (429) HOT 2
- Feature Request: allow for having headers start at H2 or H3 instead of H1
- Project dead? HOT 4
- Getting a 'Error 400: invalid_request' on first invocation HOT 7
- [SyncRepoSettings bot] - Invalid config file
- Can't install on macOS 13 HOT 1
- I fixed all issues! Use my fork HOT 2
- I got this project working on macOS 13 but the owners of this repo won't merge the changes
- Mmwk
- this app tried to access sensitive info in your google account. to keep your account safe, google blocked this access HOT 1
- 2023 - is this Project Dead?
- Hhhh
- Is this still maintained? HOT 1
- ERR_INVALID_ARG_TYPE(name, 'string', value)
- error in documentation about code block font sizes
- 2fa? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md2googleslides.