Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

error: { [Error: cannot POST /api/v3/tasks/user (404)] status: 404, method: 'POST', path: '/api/v3/tasks/user' }, #57

Open
ajfclark opened this issue Jan 26, 2017 · 1 comment

Comments

@ajfclark
Copy link

ajfclark commented Jan 26, 2017

Habitica API appears to have changed. All tasks fail to sync with a 404 message.

This seems to be an issue in the habitrpg-api library. I updated line 14 of /usr/local/lib/node_modules/todoist-habitrpg/node_modules/habitrpg-api to:

this.apiUrl = apiUrl || 'https://habitica.com/api/v3';

And the tasks seem to be syncing correctly again.

It does seem to be possible to set the apiURL without editing the library. I'll see if I cna track down where to make that change.

@ajfclark
Copy link
Author

Ok, updating line 152 of habitSync.js from:

  var habit = new habitapi(self.uid, self.token, null, 'v2');

to:

  var habit = new habitapi(self.uid, self.token, 'https://habitica.com/api/v3', 'v2');

Allows sync to continue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant