Skip to content

Something went wrong trying to request access to Calendar #2

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

Closed
kellyarwine opened this issue Jan 6, 2024 · 9 comments
Closed

Something went wrong trying to request access to Calendar #2

kellyarwine opened this issue Jan 6, 2024 · 9 comments

Comments

@kellyarwine
Copy link

kellyarwine commented Jan 6, 2024

This workflow looks super promising. This is the error I'm getting:

[11:57:15.392] Calendar++[Script Filter] Script with argv '(null)' finished
[11:57:15.397] ERROR: Calendar++[Script Filter] Code 1: 2024-01-06 11:57:15.201 calpp[33695:3438620] The file “January6.png” doesn’t exist. - calpp/IconRenderer.swift:121
[11:57:15.399] Calendar++[Script Filter] {
  "items" : [
    {
      "subtitle" : "",
      "arg" : "Something went wrong trying to request accesss to Calendar but no error was provided",
      "valid" : true,
      "title" : "Something went wrong trying to request accesss to Calendar but no error was provided",
      "icon" : {
        "path" : "icons\/triangle-exclamation.png"
      }
    }
  ]
}

Also, I'm assuming it needs an API token, but I'm not seeing where to add one.

@kellyarwine
Copy link
Author

Ah, I found this but I still have an error. If I type cal[space] I get the following:

[12:07:25.130] Calendar++[Script Filter] Script with argv ' ' finished
[12:07:25.131] ERROR: Calendar++[Script Filter] Code 1: 2024-01-06 12:07:24.938 calpp[33921:3447861] The file “January6.png” doesn’t exist. - calpp/IconRenderer.swift:121
[12:07:25.137] Calendar++[Script Filter] {
  "items" : [
    {
      "subtitle" : "",
      "valid" : true,
      "arg" : "Something went wrong trying to request accesss to Calendar but no error was provided",
      "icon" : {
        "path" : "icons\/triangle-exclamation.png"
      },
      "title" : "Something went wrong trying to request accesss to Calendar but no error was provided"
    }
  ]
}```

@zeitlings
Copy link
Owner

Hey @kellyarwine, this looks like a permission issue. Make sure that Alfred 5 and possibly Calendarpp have Full Access to your Calendar, otherwise trying to access the Calendar will always fail.

You can check the permissions here: System Settings > Privacy & Security > Calendars
Or run this command in the terminal to directly jump to the relevant pane:
open x-apple.systempreferences:com.apple.preference.security\?Privacy_Calendars

@zeitlings zeitlings changed the title The file [png] does not exist Something went wrong trying to request access to Calendar Jan 7, 2024
@kellyarwine
Copy link
Author

Thank you @zeitlings! I opened that settings page and do not see neither Alfred 5 nor the Calendarapp in the list. I do see other apps I've installed though. What am I doing wrong? Is the thought that I would double click on the workflow and it would show up in Alfred and also show up on the Privacy pane? Are there any steps I'm missing?

@kellyarwine
Copy link
Author

I confirmed I'm using Alfred 5. I'm also using Sonoma if that helps at all.

@zeitlings
Copy link
Owner

@kellyarwine perhaps it's best to start here: Granting Alfred Permissions on Your Mac.
I hope that helps!

@goldenages1989
Copy link

After trying the steps mentioned above, I still can't resolve the issue.

@kellyarwine
Copy link
Author

I got a new Mac and circled back to this because I really wanted to get it working. On my new Mac, it prompted me for permissions 3 times and instantly started working. I could never get it to work on my old Mac (from 2020). 🤷

@toobluescientist
Copy link

I have the same issue. I've checked the permissions and all but nothing works.

SCR-20240527-jqtc

Do you have any idea @zeitlings ?

@zeitlings
Copy link
Owner

Hey @toobluescientist, if Alfred has full access already I would expect it to work, but perhaps you can try dragging the calpp executable directly into the list of apps that have access to the calendar.

In Alfred, type > open x-apple.systempreferences:com.apple.preference.security\?Privacy_Calendars to open the relevant panel and drag in the executable that is located in the workflow files (open any object from the workflow canvas and click the little folder icon on the bottom left to find it).

SCR-20240527-hxxl Screenshot 2024-05-27 at 08 20 22

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

4 participants