Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Idea why it won't work? #2

Open
Isak-Taun opened this issue Jun 5, 2021 · 1 comment
Open

Any Idea why it won't work? #2

Isak-Taun opened this issue Jun 5, 2021 · 1 comment

Comments

@Isak-Taun
Copy link

TypeError: Cannot read property 'get' of undefined
fetchExistingTasks @ Code.gs:65

@Erick-Bryan-Cubas
Copy link

This error can occur if the object is not defined properly or if the property is not set. To fix this error, make sure that you have defined the object and that it has the property set correctly.templateParams_gettemplateParams_get

const templateParams = {
  _post: {
    method: "post",
    headers: { "x-api-user": HABITICA_ID, "x-api-key": HABITICA_TOKEN },
  },
  _get: {
    contentType: "application/json",
    method: "get",
    headers: { "x-api-user": HABITICA_ID, "x-api-key": HABITICA_TOKEN },
  },
  _delete: {
    method: "delete",
    headers: { "x-api-user": HABITICA_ID, "x-api-key": HABITICA_TOKEN },
  },
};

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

No branches or pull requests

2 participants