Comments (7)
@darekkay
Thanks for all your help! I'm on Ubuntu 22.04, so default node JS version is 12.<something>
. Once I upgraded using NVM all is now working.
In case it helps anyone else here are full steps to get latest todoist-export working on Ubuntu 22.04:
# Ubuntu 22.04 only - install a more recent version of Node JS as todoist-export needs Node 14.0 or newer
# Install Node Version Manager https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
nvm install node
# Exit terminal with ctrl+d, open a new terminal (or tab in Konsole)
git clone https://github.com/darekkay/todoist-export.git
cd todoist-export/
cp src/config.js.example src/config.js
vim src/config.js # Follow the steps in README.md to create new integration in Todoist account, and setup todoist-export to do OAuth
node -v # This should be newer than version 14
npm install
npm start
from todoist-export.
@tkedwards Please don't post your code
or token
- this is sufficient for anyone to access all your Todoist data. I've edited your post, but it can be still viewed in the history. I highly suggest that you revoke this access token to prevent further access.
With that said, I did use your token with the latest version of this project to debug the issue and I was able to download your data (I've immediately deleted it without opening). However, I was able to reproduce the issue when selecting the "Export all" checkbox. This issue exists for a few weeks/months now, but I haven't come around looking into it, yet.
from todoist-export.
Fixed in a72fb5d . @tkedwards Please double-check if the solution works for you.
from todoist-export.
Oops! I've deleted that app with that client ID and secret now from https://developer.todoist.com/appconsole.html
I've tried the same steps as before, including creating a new app at https://developer.todoist.com/appconsole.html:
git clone https://github.com/darekkay/todoist-export.git
cd todoist-export/
cp src/config.js.example src/config.js
vim src/config.js # created new application, added the client ID and client secret
npm install
npm start
But now I get a different error:
$ npm start
> [email protected] start
> node src/index.js
/home/tim/bin/todoist-export/src/app.js:49
status: error.response?.status,
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/tim/bin/todoist-export/src/index.js:2:13)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
from todoist-export.
Looks like an issue with optional chaining. Which Node version do you have? Optional chaining is supported since Node 14, anything below Node 14 is officially not supported anymore.
from todoist-export.
FYI, there was yet another issue when exporting huge amount of data. After ~35.000 tasks, Todoist returned 'Unknown error. If it keeps happening, please get in touch with Todoist Support.'.
As a workaround, the export will now return all the data it received before the API returns an error. So it might be missing tasks, but at least it will not fail anymore.
Fixed in 0f8d6c9
from todoist-export.
I'll close the ticket. If you still encounter any issues (with Node 14+), please add a comment and I'll reopen it.
from todoist-export.
Related Issues (19)
- completed tasks? HOT 3
- Add loading indicator HOT 1
- Improve state passing HOT 3
- Question: Consuming the exported JSON data HOT 3
- Not an issue, just some praise! HOT 1
- Sort CSV export to match the order in Todoist
- Export task attachments
- Conversion for AmbleNote - Link to Gist
- Getting HTTP 404 errors when trying to export HOT 4
- CSV export doesn't include task labels HOT 1
- api discontinued HOT 1
- 403 Invalid CSRF token when running locally HOT 3
- Suddenly running into 403 HOT 2
- Plans for archived / completed tasks? HOT 1
- export broken due to SSL HOT 6
- Package deprecation warnings - clarify minimum supported version of nodejs HOT 1
- nodejs v8 LTS vulnerabilities in dependencies with some breaking changes preventing automatic fix HOT 1
- Glitch fork HOT 2
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 todoist-export.