aaronpk / OwnYourGram

📷 Save your Instagram photos to your own website!
94 stars 14 forks source link

Nothing posted to blog from ownyourgram in over a month #64

Closed davidmead closed 5 years ago

davidmead commented 6 years ago

Last photo successfully syndicated from Instagram to my blog was March 24th.

Logging in today I saw this message...

ownyourgram_dashboard

Going through to the photos page and clicking on each of the 20 entries I get "an error occurred" message for each one...

import_photos_-_ownyourgram

I'm now over 30 photos behind on what's on Instagram and what's been syndicated to my blog.

I am up-to-date on all the IndieWeb WP plugins too.

Any suggestions?

aaronpk commented 6 years ago

It looks like OwnYourGram has been getting an Unauthorized response from your site. Are you able to post from any other micropub clients?

Try logging in to Quill and creating a note and see if that gives you an error.

Is your IndieAuth plugin set to use the local endpoint? If not, you should probably switch to that, although it will require that you log in to any Micropub clients again.

Also pinging @dshanske to help debug since he might have some more ideas.

davidmead commented 6 years ago

I logged out of Quill and logged back in. It gave me, what looks like, the OK for all the endpoints etc.

sign_in

I authorized using GitHub and it took me to the posting screen. There, when I tried to post I got this error...

new_post
HTTP/1.1 401 Unauthorized
Date: Wed, 02 May 2018 00:01:52 GMT
Server: Apache/2.2.34
X-Powered-By: PHP/5.6.21
Link: <http://davidjohnmead.com/blog/wp-json/indieauth/1.0/token>; rel="token_endpoint", <http://davidjohnmead.com/blog/?micropub=endpoint>; rel="micropub", <http://davidjohnmead.com/blog/wp-json/webmention/1.0/endpoint>; rel="webmention", <http://davidjohnmead.com/blog/wp-json/webmention/1.0/endpoint>; rel="http://webmention.org/"
Set-Cookie: wfvt_3186044557=5ae8fff257695; expires=Wed, 02-May-2018 00:31:54 GMT; Max-Age=1800; path=/; httponly
Vary: User-Agent,Accept-Encoding
Transfer-Encoding: chunked
Content-Type: application/json

"Unauthorized"

I have the IndieAuth WP plugin installed and it shows active - but when I go to Users > Manage Tokens there's nothing listed, just a 'Revoke Tokens' button.

image

I have no idea where to see or switch my local endpoint - I am very confused.

aaronpk commented 6 years ago

Okay, sounds like there might be a bug in the IndieAuth plugin then. Pinging @dshanske. I can see that your site is set to use the external endpoints, so there might be a bug with that.

In the mean time, the token settings are in the main settings panel. If you change to the local endpoints I suspect you'll have better luck, and that's also a better long-term plan anyway.

screenshot 2018-05-01 17 48 48
davidmead commented 6 years ago

Thanks. I'll try that tonight.

David Mead

http://twitter.com/davidmead http://davidjohnmead.com http://dmwebsites.com

On Tue, May 1, 2018, 8:49 PM Aaron Parecki notifications@github.com wrote:

Okay, sounds like there might be a bug in the IndieAuth plugin then. Pinging @dshanske https://github.com/dshanske. I can see that your site is set to use the external endpoints, so there might be a bug with that.

In the mean time, the token settings are in the main settings panel. If you change to the local endpoints I suspect you'll have better luck, and that's also a better long-term plan anyway.

[image: screenshot 2018-05-01 17 48 48] https://user-images.githubusercontent.com/113001/39500238-eb05bac4-4d67-11e8-8ce1-7616c8bd9487.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aaronpk/OwnYourGram/issues/64#issuecomment-385832686, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNU8lCgshoPfbjA3y9kvxVFxS0ZB8b9ks5tuQKCgaJpZM4TuQPr .

davidmead commented 6 years ago

@aaronpk Going into my settings it looks like it's already set to use Local Endpoints. Maybe that's the issue? image

Not sure what could've change to cause this issue.

aaronpk commented 6 years ago

Ooh that's interesting, thanks! That might be a problem with OwnYourGram and Quill not properly updating the access token when you log back in. I will try to reproduce this!

aaronpk commented 6 years ago

Well I confirmed that OwnYourGram does in fact update the access token when you log back in, so we're back to square one here.

@davidmead what URL are you entering in OwnYourGram when you log in? I see a few different accounts for you, at various levels of functioning.

Right now, the account OwnYourGram is using is http://davidjohnmead.com/, but that doesn't look like a wordpress site. It looks like you have wordpress installed at http://davidjohnmead.com/blog/. So if you log in to OwnYourGram with http://davidjohnmead.com/blog/ and set that one up, then I'm guessing everything will work like expected.

dougbeal commented 6 years ago

I'm having the same problem with OYG and OYS at https://dougbeal.com

Ruxton commented 6 years ago

@dougbeal @davidmead https://github.com/indieweb/wordpress-indieauth/pull/56 the bug i made this fix for today may be affecting you

davidmead commented 6 years ago

Thanks @aaronpk. I've just gone in and updated my Instagram profile URL to http://davidjohnmead.com/blog and went through OwnYourGram again and it all seems to be working :-)

I guess I should be using http://davidjohnmead.com/blog/ on all the profiles from now on then, including Brid.gy etc.

Thanks for the fix @Ruxton. I made sure I updated all the WP Indieweb plugins before I tried this.

aaronpk commented 6 years ago

That's great to hear @davidmead!

@dougbeal, OYG is getting back an HTTP 401 error from your site. We'll need to debug that separately, it's likely related to the HTTP Authorization header getting blocked by your web host.