-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Invalid server response #1
Comments
can you please run the following commands in terminal and post the output here?
|
I get this after running ./alfred-pinboard-rs update: {"items":[{"icon":{"path":"erroricon.icns"},"subtitle":"invalid server response: invalid port number at line 3353 column 57","title":"Error"}]}⏎ |
ok, run this to see if you can actually talk to Pinboard server without using this workflow:
|
The curl command works, downloaded my bookmarks. |
ok, I am guessing that there is a text encoding issue related to one of the bookmarks you have based on the "line 3353 column 57".
By the way, does your Pinboard user name have any non-ASCII character? |
No non-ASCII character in my username. |
when you do |
Yes, I'm doing it that way. |
According to the log you posted, problem happens when adding your authorization token to the url we send to Pinboard. Maybe when you were using Alfred to setup up this workflow using Check the If that looks okay and you still get the same error message, you can then fully delete these two folders and try setting up the workflow again by using |
Ok, I deleted the two folders and ran the update command without setting the auth token. I got the same error - invalid port number. Is this strange? |
after you delete the folders you need to do one-time setup of the workflow. |
What I want to say is that even if I set the token the error is the same. Perhaps Alfred doesn't read the settings JSON? |
I'd guess it is reading it but somehow your settings file is not following the required format. Download this alfred-pinboard-rs and copy it in the workflow's folder. Then run this and see if the token that is printed in the log matches what you entered when setting up the Workflow:
|
What is the path for the workflow? |
actually you don't need to copy it to workflow's path. If it is in
On my machine, the path for workflow is: |
I think there is a progress.
As you see there now two new lines after |
It seems you are not using your actual user name and token from Pinboard. |
or if I am mistaking and you modified the log before posting, then I have to work on more logging |
I modified the log before posting. |
ok, let's see what we get from this new binary. After downloading it do the same thing as above:
Post the output here.
(don't forget to replace username/token in above with yours) Goto to line 3353 of |
This is line 3353.
And a few lines surrounding it. I deleted the original bookmark from line 3353 but the same number line still causes the error. |
Ok, everything is fixed now. I had a few bookmarks with wrong URL syntax. Deleted those bookmarks from Pinboard and now Alfred shows the bookmarks. Thank you very much for your help. |
great! |
When I enter my Pinboard credentials, I get a notification that the credentials are successfully set but after a few seconds I get a new notification about invalid server response (invalid port number....; I can't see the entire log message; here is a screenshot on Dropbox).
The text was updated successfully, but these errors were encountered: