Closed Nerian closed 4 years ago
Try deleting the cache directory: /Users/Nerian/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vitorgalvao.alfred.pinplus
Hi,
I tried doing that but same error.
I did some debugging and it appears that the code is failing to parse the json response.
In this line: https://github.com/vitorgalvao/alfred-workflows/blob/master/PinPlus/source/pinplus.rb#L103
JSON.parse(URI("https://api.pinboard.in/v1/posts/update?auth_token=#{grab_pinboard_token}&format=json").read)['update_time']
JSON::ParserError: 751: unexpected token at '{"update_time":"2020-05-26T14:31:42Z"}
'
from /Users/Nerian/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/json/common.rb:156:in `parse'
from /Users/Nerian/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/json/common.rb:156:in `parse'
from (irb):36
from /Users/Nerian/.rvm/rubies/ruby-2.4.2/bin/irb:11:in `<main>'
2.4.2 :014 > puts URI("https://api.pinboard.in/v1/posts/update?auth_token=#{grab_pinboard_token}&format=json").read
{"update_time":"2020-05-26T14:31:42Z"}
=> nil
2.4.2 :015 > URI("https://api.pinboard.in/v1/posts/update?auth_token=#{grab_pinboard_token}&format=json").read
=> "{\"update_time\":\"2020-05-26T14:31:42Z\"}\n\t\n"
Which is pretty weird because this works:
2.4.2 :016 > JSON.parse "{\"update_time\":\"2020-05-26T14:31:42Z\"}\n\t\n"
=> {"update_time"=>"2020-05-26T14:31:42Z"}
Something’s going on. I haven’t touched that code in a while, it seems to be something in the API response. I’ve asked.
Found the problem, already emailed Maciej. Fix needs to be done upstream, at which point the Workflow should start working again.
Excellent, thanks!
Hi,
Setup info
Description of issue
When I try to search for bookmarks I get no result This has been happening for at least the last 3 days. I tried removing and reinstalling PinPlus but the same error.
Debugger output