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

Error on first start #2

Closed
superandrew opened this issue Jun 26, 2022 · 12 comments
Closed

Error on first start #2

superandrew opened this issue Jun 26, 2022 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@superandrew
Copy link

Hi, I followed the guide, however I have this error in debug:

[13:52:27.807] Logging Started...
[13:52:29.735] Mouseless Messenger[Script Filter] Queuing argument '(null)'
[13:52:30.104] Mouseless Messenger[Script Filter] Script with argv '(null)' finished
[13:52:30.107] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/superandrew/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/DEB99AC7-FAB3-4183-B750-7BCA25029A02: execution error: Error: TypeError: null is not an object (evaluating 'message_body.replace') (-2700)
[13:53:05.780] Mouseless Messenger[Script Filter] Queuing argument '(null)'
[13:53:06.197] Mouseless Messenger[Script Filter] Script with argv '(null)' finished
[13:53:06.202] ERROR: Mouseless Messenger[Script Filter] Code 1: /Users/superandrew/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/94FC029E-A2B3-48D7-BED2-C4FDF66A5804: execution error: Error: TypeError: null is not an object (evaluating 'message_body.replace') (-2700)

@stephancasas
Copy link
Owner

This is a new one. I'll write-in a debug/log feature, and re-release to see if we can identify what's happening.

Out of curiosity, are you using iCloud Messages?

@stephancasas stephancasas self-assigned this Jun 26, 2022
@stephancasas stephancasas added the bug Something isn't working label Jun 26, 2022
@superandrew
Copy link
Author

yes, I am. Also, not sure if it matters, but I have no python2 installed

@stephancasas
Copy link
Owner

The workflow is written in JXA, so Python shouldn't have an effect. iCloud Messages might be a problem though. I'm not certain that it uses the same store as local messages does.

Based on the information from this site, it looks like you have to enable message retention if you want to use iCloud Messages and maintain a local messages database. Otherwise, the data is stored exclusively in iCloud:

Xnip2022-06-26_18-44-33

@superandrew
Copy link
Author

I don't have that option. It seems from an older Mac Os version.
CleanShot 2022-06-27 at 09 15 05@2x

@superandrew
Copy link
Author

superandrew commented Jun 27, 2022

also, I noticed that restarting the computer apparently fixed the issue.

But. :) I have an error when I select "reply to" someone:

[13:59:39.502] ERROR: Mouseless Messenger[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.F9E07F03-02EE-4823-A3AD-B2D743DD8BD0%3E273D9F21-78DB-4A57-B29C-4F088C3603B9)] Code 1: /Users/superandrew/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/B8DABE6C-53FF-4EEF-8893-E4157AA8AB26: execution error: Error: TypeError: undefined is not an object (evaluating 'chat_title.split('with')[1].trim') (-2700)

@stephancasas
Copy link
Owner

Can you show me a screenshot of what you get when typing msg (the recent messages selection)?

@superandrew
Copy link
Author

CleanShot 2022-06-27 at 18 51 49@2x
CleanShot 2022-06-27 at 18 52 09@2x

@stephancasas
Copy link
Owner

Are you experiencing this issue when replying to a group chat or a one-to-one conversation, or is it both?

@superandrew
Copy link
Author

boh, and in two separate computers

@superandrew
Copy link
Author

Hi @stephancasas apart from the first error, the other one was my fault. I didn't get you have to enter text directly in alfred to respond, so I pressed enter without text. I'm trying to understand how to change the workflow in order to explain to the user that he has to enter some text but I don't understand exactly how it works.

@stephancasas
Copy link
Owner

If you want to change the prompt, it would be in the Reply Dispatch node:

https://github.com/stephancasas/alfred-mouseless-messenger/blob/main/src/reply-input.jxa.js#L15-L16

@stephancasas
Copy link
Owner

Going to go ahead and close this issue. If you encounter another problem, please feel free to raise another. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants