question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export fails with "Export all" option

See original GitHub issue

Thanks for fixing https://github.com/darekkay/todoist-export/issues/17

But it still doesn’t seem to work, or there’s something else going in:

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
$ npm start

> todoist-export@1.3.0 start
> node src/index.js

Server running at http://localhost:3000
GET / 302
GET /todoist-export -
GET /todoist-export/ 200
POST /todoist-export/auth 302
GET /todoist-export/?code=xxx&state=json_all 200
GET /todoist-export/export?code=xxx&format=json_all 302
GET /todoist-export/?token=xxx&format=json_all 304
✖ Request failed with status code 404
GET /todoist-export/download?token=xxx&format=json_all 500

And in the browser I get:

Request failed with status code 404

Error: Request failed with status code 404
    at createError (/home/tim/bin/todoist-export/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/home/tim/bin/todoist-export/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/home/tim/bin/todoist-export/node_modules/axios/lib/adapters/http.js:236:11)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

[Please try again](http://localhost:3000/todoist-export/)

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tkedwardscommented, Dec 8, 2022

@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
0reactions
darekkaycommented, Dec 8, 2022

I’ll close the ticket. If you still encounter any issues (with Node 14+), please add a comment and I’ll reopen it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export Dashboard Not Exporting All Rows - Oracle Support
Dashboard Export option should export all records from the query ... The issue can be reproduced at will with the following steps:
Read more >
System administrator cannot export all Content via Data Loader
A common option used to export all Content is via the Data Export Service, although this will not be always an option.
Read more >
Error Exporting to Excel | MadgeTech
Error Exporting to Excel · Go to 'Apps & Features' in Windows and find the Microsoft Office entry · Select the entry and...
Read more >
"Failed to export PDF" message in InDesign - Adobe Support
Solution 1: Use Acrobat to downsample the images after you export. ; Choose File > Export and select PDF as your format, choose...
Read more >
Why do I see "Download failed" when exporting a report in ...
The Download failed error can occur when exporting a large report. Upon exporting your report as an Excel or CSV file, the export...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found