enable-mastodon-apps icon indicating copy to clipboard operation
enable-mastodon-apps copied to clipboard

Connection issues with Ivory

Open akirk opened this issue 2 years ago • 19 comments

While the Enable Mastodon Apps plugin works with a number of other Mastodon clients, Ivory for iOS still can't connect. Let's use this issue for debugging.

Helpful for debugging would be:

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

Thanks!

akirk avatar Apr 17 '23 06:04 akirk

Moving our testing commentary to an active thread from #7

This is the error I receive from Ivory:

IMG_2723

tomfinitely avatar Apr 17 '23 18:04 tomfinitely

Here are my access logs:

Screenshot 2023-04-17 at 14-32-45 tomfinley2020 User Portal - WP Engine

tomfinitely avatar Apr 17 '23 18:04 tomfinitely

Thank you, this is helpful! So it already fails to register the app.

akirk avatar Apr 17 '23 18:04 akirk

@electricbrick Could you try to connect to my blog https://alex.kirk.at/ I've got error logging turned on here so I can hopefully find out what Ivory doesn't like. Thank you!

akirk avatar Apr 20 '23 19:04 akirk

Done, just now.

tomfinitely avatar Apr 20 '23 23:04 tomfinitely

Thank you! Ivory uses a request_uri like com.tapbots.Ivory.10217:/request_token which is not a valid URL but I added support for that in ca1f7e2. I'll release a new version today with that change and many other fixes.

akirk avatar Apr 21 '23 03:04 akirk

I've released 0.3.0, can you connect now?

akirk avatar Apr 21 '23 11:04 akirk

@akirk just tested – and it worked briefly. Turns out I was running a beta version of Ivory, but it should've expired last month. Long story short, I can't log in via the current stable release of Ivory, but have tested logins at alex.kirk.at with a number of apps so you should see those attempts in your logs. I also noticed that you added a redirect URI field to the admin screen. Mine looks like this:

com.tapbots.Ivory.13102:/request_token/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

tomfinitely avatar Apr 22 '23 03:04 tomfinitely

@akirk Ivory is not working for me on the latest plug-in release: image

videogorl avatar Apr 22 '23 07:04 videogorl

Oh no, I should have kept the logging on. @andreasjr could you maybe also try to connect to https://alex.kirk.at so that I can get some log entries? Thanks!

akirk avatar Apr 22 '23 07:04 akirk

@akirk Just tried it and got the same error. Let me know if you'd like me to try anything else!

videogorl avatar Apr 22 '23 14:04 videogorl

Thank you, this has been very helpful. Turns out Ivory uses a grant_type client_credentials to get an app token. I haven't implemented that yet but now I know I need to.

akirk avatar Apr 22 '23 16:04 akirk

Ivory should now work after 3fe6101344bc8bab6b801164e1c71485e31f86c0, thanks @pfefferle for testing! I've released 0.3.2 with the fix.

akirk avatar Apr 24 '23 14:04 akirk

@akirk Thank you for the fix! Ivory now successfully authenticates with my server! However, now Ivory crashes whenever it polls the server. Not sure if that's a plug-in issue or an Ivory issue.

videogorl avatar Apr 24 '23 15:04 videogorl

Oh no, likely some JSON that is returned is not to the liking of Ivory. Can you get some sort of crash report with anything meaningful in it?

akirk avatar Apr 24 '23 15:04 akirk

Ivory is authenticating for me. I haven't tested the full range of posting capabilities however.

tomfinitely avatar Apr 25 '23 22:04 tomfinitely

For everyone where Ivory crashes, could you check your access logs and identify the last request it makes? Is it consistent? If yes it might be an indicator that something in the data format of that endpoint is not quite right.

Maybe also the fixes for 0.3.3 and 0.3.4. might have helped.

akirk avatar Apr 26 '23 21:04 akirk

I have added a new debug mode #23 in version 0.3.5 which should make it easier to see where the app crashed (i.e. which endpoint it last accessed), so if you run into this again, I hope we'll be able to find the problem more quickly!

akirk avatar May 04 '23 12:05 akirk

Version 0.5.0 has some major fixes for Ivory, if you have time to try it again that would be great. Thanks!

akirk avatar Jul 29 '23 04:07 akirk