Closed ThatOneCalculator closed 2 years ago
It seems Pleroma and Mastodon work fine, so it's just a problem with Misskey instances.
Can you enable breaking on all exceptions and tell me where it breaks? Hearing the error message makes me think that a model class failed to deserialize from Misskey's API.
Can you enable breaking on all exceptions
How do I do that? I'm running on an Android phone (Pixel 6) but I can run it on Android Studio if needed.
Ok, I assumed you were debugging from an IDE at the moment. Hang on I'll try on my end.
Apparently Mr. Syuilo managed to remove some data out of nowhere.
Yea, iirc it was either at 12.109.0 or 12.110.0 that MiAuth had some breaking changes. Thanks, Syuilo... :face_exhaling:
Yea, iirc it was either at 12.109.0 or 12.110.0 that MiAuth had some breaking changes. Thanks, Syuilo... 😮💨
For more insight, I enforce null-safety, and Misskey's API is really poorly documented if something IS ACTUALLY null. We'll see how it progresses in the future, but for now I'm updating fediverse_objects.
but for now I'm updating fediverse_objects.
That should solve the issue (for now), yea?
but for now I'm updating fediverse_objects. That should solve the issue, yea?
Yes, fediverse_objects is the library for Kaiteki that provides the data models from Misskey, etc.
Judging from the output of ApiToDart, it seems like Misskey did have many breaking changes.
Pictured: the development process of 12.110
BTW; Kaiteki isn't using MiAuth, it is using the private API endpoints intended for the instance frontend. Just the API from Misskey in general has changed
Apparently Misskey's API schema became bloated as well, mixing schemas together, which means I have even longer classes to generate..
I love Misskey, it's such well designed software with no flaws, absolutely perfect
Currently I am hand copy-pasting data fields from one generated class to another because ApiToDart doesn't support this yet...
I need to manually correct the nullability of Meta
's secure
field. Will properly fix everything once I have time today.
Fixed with https://github.com/Kaiteki-Fedi/ApiToDart/commit/578b1b57e45c63a20004cd07588adbe5a5d28701, https://github.com/Kaiteki-Fedi/ApiToDart/commit/95cf41c6cc1d60aba576c653d34ecb6e7768b40b, https://github.com/Kaiteki-Fedi/ApiToDart/commit/fdc5226e0213b7821294a3a5e013fb2f455322dd and https://github.com/Kaiteki-Fedi/fediverse_objects/commit/b8f635e04ab8d46c61a0d27d5162e5927181d300.
@Craftplacer I think this issue should be reopened.... 😖
This is from the latest commit
Misskey's API specification is unreliable still.
Also, what instance are you using to test Misskey support?
Also, what instance are you using to test Misskey support?
misskey.io
Ah. I think misskey.io runs stock 12.110.1 while a lot of instances like stop.voring.me and snug.moe run the develop branch version, which is going to be a release tag very soon. Not sure if there's also API changes between the release tag and the develop branch.
That being said, misskey.io doesn't work in the app either, same exact error :shrug:
Oh yea have fun dealing with this :skull:
Oh yea have fun dealing with this 💀
Kaiteki's sign-in routine can invoke another login prompt (like 2FA), so this only a matter of implementing it.
fediverse_objects has been updated again and Kaiteki makes it past the instance entry now
The correct command to upgrade before building again is git pull && flutter pub upgrade
, yea?
git pull
doesn't affect Dart's package manager, you should run flutter pub upgrade
and then flutter pub get
.
Sick! Now time for captcha, I suppose...
Should I make a new issue?
I suppose..
I am currently experiencing the same issue.
Using the latest release of the apk and trying to log into my instance https://social.jokiller230.tk
Error: type 'Null' is not a subtype of type 'String' in type cast
Update the app, the issue should have been fixed a while ago.
Hey! I just updated to the latest version and this issue is still happening. I have no idea what triggers this but I've noticed that it's not happening on bigger servers like misskey.io. It seems however that multiple smaller Single-User instances are running into this issue since I've tried multiple instances hosted by friends and they all seem to have this issue.
I'm running Misskey 12.111.1 using docker on a raspberry pi 400 with raspberry-pi-OS 64bit. Node.js version 18.0.0 PostgreSQL 12.2 Redis 4.0.14 Vue 3.2.37
my instance: https://social.jokiller230.tk There don't seem to be any issues with my Misskey install as far as I'm aware.
Try upgrading to Redis 7 and Node 18.4.0. It doesn't happen on my instance https://stop.voring.me so matching the deps might help
OOOH wait you said docker...try without docker. The docker image for Misskey has some issues.
bannerUrl
wasn't documented to be null. Thanks @\syuilo.
just applied a banner image to my server. Issue fixed thanks!
I keep getting the error
type Null is not a subtype of type 'bool' in type cast
. It also can't detect my instance's software.Tried with
stop.voring.me
,misskey.ai
,jigglypuff.club
andsnug.moe
, none of them worked.Using
app-release.apk
from the latest git commit withflutter build apk
.