akirk / enable-mastodon-apps

Allow accessing your WordPress blog with Mastodon clients
https://wordpress.org/plugins/enable-mastodon-apps
GNU General Public License v2.0
34 stars 6 forks source link

Connection issues with the Mastodon iOS App #12

Open electricbrick opened 1 year ago

electricbrick commented 1 year ago

Mirror of #11 but for Mastodon app.

Per @akirk: Let's use this issue for debugging.

Helpful for debugging would be:

Please use the latest version from this repo.
Take a look at access and error logs of your webserver. Which requests does Ivory make?
electricbrick commented 1 year ago

Mastodon app finds my instance successfully, but on click, I get the following error message in-app:

IMG_2723 2

Access logs:

Screenshot 2023-04-17 at 14-38-06 tomfinley2020 User Portal - WP Engine

These are really curious (weird) because I don't have any of the themes or plugins listed in the logs installed. Nothing appears in my error logs.

akirk commented 1 year ago

I think those access logs are unrelated and look more like someone scanning your blog.

Could you check if 0.3.0 makes the app work now? Thank you!

andreasjr commented 1 year ago

I can provide logs if needed, but when I try to log in with the Mastodon iOS app, it will recognize the server, authenticate me, and then leave me on the "Enter URL" screen with no error but also no success.

electricbrick commented 1 year ago

@akirk Still no joy. I've attempted to log in to your server late last night (around midnight US East Coast time, ~9 hours ago) to hopefully leave you a breadcrumb trail.

akirk commented 1 year ago

@electricbrick Thank you and sorry but if you have time could you do it again? I had disabled the logging, it's now back in place. Thank you very much!

electricbrick commented 1 year ago

@akirk done!

akirk commented 1 year ago

I hope the fix for Ivory has also made this one work. Please try 0.3.2.

huckabarry commented 1 year ago

I've only been able to get Ivory to semi-work, Ice Cubes and Mastodon official app continue to log auths in the plugin but will not actually pass OAUTH on the login and add the account to the app.

electricbrick commented 1 year ago

Running EMA 0.3.2 Mastodon is still returning an error message for me.

image

huckabarry commented 1 year ago

Running EMA 0.3.2 Mastodon is still returning an error message for me.

image

That happened to me when I mistakenly tried "registering" with my own server when I needed to click the login button instead.

akirk commented 1 year ago

Right, please make sure to click "Log In" and not "Pick my own Server"

Screenshot 2023-04-26 at 20 56 55

Alas, the login doesn't work yet but at least I can test it so I hope I can get it to work soon!

akirk commented 1 year ago

I have released 0.3.3 with some more fixes of the Mastodon iOS app, please test again, I hope it now works better!

electricbrick commented 1 year ago

Hate reporting the bad news @akirk, but Mastodon Official for iOS is still not working for me, as of 0.3.4

akirk commented 1 year ago

@electricbrick what happens? Is there an error message? Are you using the Login button for sure and and not "Pick a server"?

huckabarry commented 1 year ago

@electricbrick what happens? Is there an error message? Are you using the Login button for sure and and not "Pick a server"?

It's working for me. It wasn't working at all yesterday, but today it's working better than any other client. I can actually favorite and boost posts and see a timeline.

electricbrick commented 1 year ago

@akirk apologies, it was late and I was bleary-eyed, missing that instruction above. Login DOES work.

huckabarry commented 1 year ago

Back to not working today. None of the apps. I can post but can't see a timeline again. Ivory keeps crashing.

akirk commented 1 year ago

There must be something off with the JSON format. Could you download the JSON and put it somewhere (privately if you prefer?) accessible? Are you comfortable with the command line? You need to get an access token from the admin page like so

ScreenFlow

and then get the JSON like this (put your token where the 1234 is)

curl -H"Authorization: Bearer 1234" https://yourdomain/api/v1/timelines/home
huckabarry commented 1 year ago

There must be something off with the JSON format. Could you download the JSON and put it somewhere (privately if you prefer?) accessible? Are you comfortable with the command line? You need to get an access token from the admin page like so

ScreenFlow

and then get the JSON like this (put your token where the 1234 is)


curl -H"Authorization: Bearer 1234" https://yourdomain/api/v1/timelines/home

Oh man, I just went down some rabbit holes trying to figure that out. Setting up a user with access on the server and such. Definitely out of my depth. I'll have to look at it more closely tomorrow.

akirk commented 1 year ago

You don't need that, you can just use the same token as your app.

huckabarry commented 1 year ago

You don't need that, you can just use the same token as your app.

Oh, I see what you're saying now. Here's the JSON file. I'm user "bryan@inthedeltawaves.social". Let me know if you see anything out of the ordinary.

https://drive.google.com/file/d/1LrtL6RhkgUnxQmzfmtlUHemKwoar9TW4/view?usp=sharing

akirk commented 1 year ago

I wasn't able to find anything but maybe at the time it was working again? I have added a new debug mode in #23 (0.3.5) which should make it easier to get up to date JSON files in case apps crash or timelines are empty.

@huckabarry is it working for you at the moment or is it broken?