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

URL seems to be inaccessible #22

Open
hjhart opened this issue Dec 22, 2023 · 0 comments
Open

URL seems to be inaccessible #22

hjhart opened this issue Dec 22, 2023 · 0 comments

Comments

@hjhart
Copy link

hjhart commented Dec 22, 2023

  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

I think URL is a relatively newer field. My code looks like this:

// with JavaScript
const reminders = require("node-reminders");

async function run() {
  // get lists
  // const lists = await reminders.getLists();
  // const list = await reminders.getList("EBF92994-1DF8-47C5-B318-BA9228C13D9C");
  const listOfReminders = await reminders.getReminders(
    "EBF92994-1DF8-47C5-B318-BA9228C13D9C",
    ["name", "remindMeDate", "completed", "body"]
  );
  console.dir(listOfReminders);
}

run();

But when I try to add the url field it gives me an error.

/Users/jhart/workspace/instagram-recipe-extractor/node_modules/execa/lib/error.js:59
                error = new Error(message);
                        ^

Error: Command failed with exit code 1: osascript -l JavaScript /Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/jxa/get-reminders.jxa {"id":"EBF92994-1DF8-47C5-B318-BA9228C13D9C","props":["name","remindMeDate","completed","body","URL"]}
/Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/jxa/get-reminders.jxa: execution error: Error: Error: Can't get object. (-1728)
    at makeError (/Users/jhart/workspace/instagram-recipe-extractor/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/jhart/workspace/instagram-recipe-extractor/node_modules/execa/index.js:114:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.execJXA (/Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/lib/utils.js:31:24)
    at async Object.getReminders (/Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/lib/reminders.js:20:23)
    at async run (/Users/jhart/workspace/instagram-recipe-extractor/bin/main.js:8:27) {
  shortMessage: 'Command failed with exit code 1: osascript -l JavaScript /Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/jxa/get-reminders.jxa {"id":"EBF92994-1DF8-47C5-B318-BA9228C13D9C","props":["name","remindMeDate","completed","body","URL"]}',
  command: 'osascript -l JavaScript /Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/jxa/get-reminders.jxa {"id":"EBF92994-1DF8-47C5-B318-BA9228C13D9C","props":["name","remindMeDate","completed","body","URL"]}',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: "/Users/jhart/workspace/instagram-recipe-extractor/node_modules/node-reminders/build/main/jxa/get-reminders.jxa: execution error: Error: Error: Can't get object. (-1728)",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

I've tried url, uri, URL, link... Any thoughts?

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

1 participant