Giter Site home page Giter Site logo

Comments (7)

tkedwards avatar tkedwards commented on May 25, 2024 1

@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.

darekkay avatar darekkay commented on May 25, 2024

@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.

darekkay avatar darekkay commented on May 25, 2024

Fixed in a72fb5d . @tkedwards Please double-check if the solution works for you.

from todoist-export.

tkedwards avatar tkedwards commented on May 25, 2024

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.

darekkay avatar darekkay commented on May 25, 2024

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.

darekkay avatar darekkay commented on May 25, 2024

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.

darekkay avatar darekkay commented on May 25, 2024

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)

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.