spamwax / alfred-pinboard-rs

Alfred Workflow for Pinboard (Rust)
Other
280 stars 13 forks source link

weird bookmarking error? #79

Closed rjkroege closed 4 years ago

rjkroege commented 4 years ago

I'm running the latest version of the workflow (0.15.12 as of this filing) and something weird has something happened:

Here's the Afred debug spew with some annotations.

[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard] add_pin: starting.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] add_url: starting.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api]  url: https://www.bluetoothle.wiki/start
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] Sending payload to: https://api.pinboard.in/v1/posts/add
        {"shared": "no", "extended": "Bluetooth wiki", "toread": "no", "replace": "yes", "url": "https://www.bluetoothle.wiki/start", "description": "start [Bluetooth® LE Wiki]", "tags": "hardware"}
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] get_api_response: starting.
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api]   url: "https://api.pinboard.in/v1/posts/add"
[2020-06-19T10:27:53Z DEBUG rusty_pin::pinboard::api] add_auth_token: starting.
[2020-06-19T10:27:54Z DEBUG rusty_pin::pinboard::api]  resp is ok (no error)
[2020-06-19T10:27:54Z DEBUG rusty_pin::pinboard::api]  string from resp ok

So this looks good to here in that pinboard is up and returned its response. (And the bookmark got posted.)

[2020-06-19T10:27:54Z DEBUG rusty_pin::pinboard::api]    ['\u{feff}', '{', '\"', 'r', 'e', 's', 'u', 'l', 't', '_']

Is the \u{feff} meant to be there?

[06:27:54.434] Rusty Pin[Run Script] Processing complete
[06:27:54.434] Rusty Pin[Run Script] Passing output 'Error: invalid server response: expected value at line 1 column 1
' to Junction

There was more but I'm not sure that it's useful. The error is just propagating correctly I think through the workflow.

ekoessel commented 4 years ago

I have the exact same error. but in Alfred 3 (Version 0.14.14). The bookmark gets posted to Pinboard but I can't find them with ps afterwards. Any update or fix yet?

karthik commented 4 years ago

Same error on OSX 10.15.5 (19F101) on Alfred 4.0.9 [1144]

sent-hil commented 4 years ago

Looks like an error on Pinboard api side: https://www.alfredforum.com/topic/10538-pinplus-%E2%80%94-interact-with-your-pinboard-bookmarks/?do=findComment&comment=77182

https://twitter.com/vhgalvao/status/1272633594700353543

spamwax commented 4 years ago

this is an error on Pinboard's end which only happens when using its API (using curl is fine) I will try to add a workaround as soon as I can

spamwax commented 4 years ago

@rjkroege try the latest release please and if it's fixed please close the issue

isokaze04 commented 4 years ago

I have similar issue on the latest release. Seems to be still there.

spamwax commented 4 years ago

can you please try version 0.15.15 when it's compiled in couple of minutes?

sent-hil commented 4 years ago

@spamwax works for me, thank you!

ianedwardthomas commented 4 years ago

Yep, fixed the same problem for me too. Thx!

karthik commented 4 years ago

works great! Thanks!

isokaze04 commented 4 years ago

Confirm it has been fixed. Thanks!