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

Command does not work often (JSON error) #3

Open
josefglatz opened this issue Jul 25, 2018 · 6 comments
Open

Command does not work often (JSON error) #3

josefglatz opened this issue Jul 25, 2018 · 6 comments

Comments

@josefglatz
Copy link

Hey, I'm using the workflow a long time.

Since High Sierra (I don't konw if that could be the reason) the command does often simple not work.

See the debug info:

Starting debug for 'Translate API'

[2018-07-25 14:08:51][STDERR: input.scriptfilter] PHP Notice:  Undefined index:  in /Users/jglatz/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.988BCCFD-85B1-4FEB-B1E9-7960C00E66EE/filter.php on line 37
[2018-07-25 14:08:51][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Notice: Undefined index:  in /Users/jglatz/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.988BCCFD-85B1-4FEB-B1E9-7960C00E66EE/filter.php on line 37
<?xml version="1.0" encoding="UTF-8"?>
<items>
 <item valid="no">
  <title>Type to translate...</title>
 </item>
 <item autocomplete="› set language ›" valid="no">
  <title>Set Translation Languages</title>
  <subtitle>Currently translating to `, German, English`</subtitle>
 </item>
 <item arg="{&quot;action&quot;:&quot;set-api-key&quot;}" valid="yes">
  <title>Set Google Translate API Key</title>
  <subtitle>API Key is currently set to &quot;ymSuperApiKeyWhichIsRemovedHereAndNormalyWorkingIfTheWorkflowDoesNotBreak&quot;</subtitle>
 </item>
</items>

@shawnrice Do you have an idea what can be broken? I couldn't find the reason

@josefglatz josefglatz changed the title Command does not work often Command does not work often (JSON error) Jul 25, 2018
@josefglatz
Copy link
Author

Update

After a restart of Alfred v3 the workflow works again

@shawnrice
Copy link
Owner

I'm glad restarting Alfred fixed it. But that's also strange that it fixed it.

Sorry that I hadn't gotten to debug. But I was out of town with no real internet connection for the last week.

Going to close the issue. Please re-open if it pops back up.

@josefglatz
Copy link
Author

Sorry @shawnrice ... My english is not so great..

The problem occurs after some time using Alfred. It's jsut a workaround actually to get it working when I need the workflow :)

@josefglatz
Copy link
Author

It would be cool if you can reopen the issue. I also add a link in the alfredforum: https://www.alfredforum.com/topic/11728-clipboard-pasting-isnt-working-after-a-time/?do=findComment&comment=61507

It's the first time, that a workflow doesn't work after N minutes/hours anymore and then it's working after a restart of all Alfred processes

@shawnrice shawnrice reopened this Aug 1, 2018
@shawnrice
Copy link
Owner

Re-opened.

I'll try to get some some time to debug this after work and see what's going on.

Do you have any way to recreate this error reliably, or is it something that just happens after using it after some time?

@josefglatz
Copy link
Author

Actually, the problem is here again. It never appeared since my previous comment. (actual macOS and actual latest stable Alfred)

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