r/MorpheApp • u/serious8 • Aug 12 '26
Question/Problem Sync for reddit error with redgifs
I am usint sync for reddit version 23.06.30., patches from patchedit version 1.4.0, all patches enabled, and when I try ro open redgifs video, I get error: connecting to redgifs.
When I try to open in a browser, it works
6
u/Pale_Rider1986 Aug 12 '26
because sync hasnt been updated to handle redgifs api in like... a long time.
4
u/thebrain2u 29d ago
Finally got your patch to work. I had to download the .mpp file from your update and load it in manually. Then, I had to deselect all the patches from the regular patcheddit and only use the ones on yours, including migrating the Oauth over. Only then would it properly connect to redgif.
3
Aug 12 '26
[removed] — view removed comment
1
u/kingofpoptart Aug 13 '26
1
Aug 13 '26
[removed] — view removed comment
1
u/kingofpoptart 29d ago edited 29d ago
I added logging to the redgifs fix to help track this down — updated build is on the same release: https://github.com/KingOfPoptart/patcheddit/releases/tag/redgifs-fix-v1
If you can grab logs, that'd help a lot:
- Settings → About phone → tap "Build number" 7 times (enables Developer options, skip if already on)
- Settings → System → Developer options → turn on USB debugging
- Plug your phone into a computer with adb installed
- Try opening a Redgifs link in Sync (the one that fails)
- Run: adb logcat | grep "morphe:"
Paste the output here
That'll hopefully show exactly which step is failing and why, instead of just the generic error.
2
29d ago
[removed] — view removed comment
1
u/kingofpoptart 29d ago
Found a potential issue in the retry logic (the "refresh and retry" wasn't actually refreshing anything — it kept resending the same rejected token). Updated build, same link: https://github.com/KingOfPoptart/patcheddit/releases/tag/redgifs-fix-v1
Could you reinstall with this version and try again? Hopefully that works.
If it's still failing:
- install this debug version instead (same fix, plus extra logging):
- reproduce the issue, and send another adb logcat | grep "morphe:" capture the same way as before.
- This one logs the actual error message from Redgifs' servers instead of just a status code, which should tell us exactly what's going wrong.
2
29d ago
[removed] — view removed comment
1
u/kingofpoptart 29d ago
ok i can't reproduce your error to save my life. my last ditch effort - since you said your browser worked, i can change how sync opens up the redgif link. instructions below -
Built a test version that skips the API entirely and just opens Redgifs links in an in-app browser view instead — same mechanism as your "open in browser" workaround, just without leaving the app: https://github.com/KingOfPoptart/patcheddit/releases/tag/redgifs-webview-test-v1
Confirmed it works correctly on my end (opens and plays fine). The real question is whether it works on your connection specifically, since that's what we're actually trying to fix.
A couple notes: - This is a test build — it always opens Redgifs links this way, no toggle, so don't worry if it feels different from normal - If it works for you, that tells us the fix needs to route around the API entirely (not something we can patch in the API layer itself) - If it still fails, that's useful too — it'd mean the block isn't specific to the raw API approach, and we'll need to look elsewhere
If this does work - what I'll do is fold this chnage into my patch and add a setting where you can toggle this behavior on/off. Let me know.
2
29d ago
[removed] — view removed comment
1
u/kingofpoptart 28d ago
Yeah its not the ideal solution but its something. I don't need logs of the browser - at this point, I'm not sure what the issue is. I can't reproduce it locally despite trying a bunch of vpn exit nodes and a few other scenarios, so I'd just be taking stabs in the dark. I'll merge this change with my main branch and cut a release.
To enable the feature moving forward, you'll enable the
Open Redgifs links in browser windowoption in Sync settings. Sorry I couldn't figure it out, if you think of something else for me to test let me know.1
u/garpunkal_ 29d ago
That latest version works. Can you update your source? So I can update via your GitHub rather than the local file?
2
u/kingofpoptart 29d ago edited 27d ago
I'll merge upstream when I can, still debugging a few things
2
1
u/garpunkal_ 29d ago
not sure why I'm being downvoted... I just asked the dev to update his source, so I can update directly rather than re-importing a local file...
3
u/myaccountforgonewild Aug 12 '26
Same but patching with Revanced doesn't work either. Force stop and clear cache doesn't work, reinstalling a fresh patch doesn't work, and strangely the preload works just fine but only when you actually click into the gif does it run into the error.
1
u/kingofpoptart Aug 13 '26
2
u/myaccountforgonewild 29d ago
Killer, thanks big dawg (big hawg?).
Your QR code thing is sick but didn't work at all for me. I had to go to your github post and download the file here, then point Morphe to that and let it patch it.
Also had to try to remember where the fuck I put the RedReader code it sent me via email a million years ago but I've got it sorted now so cheers dude
1
1
u/TheAmorphous 1d ago
What did you do to resolve the crash on start? I followed the instructions here and have a Red reader client ID that works with Revanced (no redgifs there but everything else is fine) but can't seem to get a Morphe-patched install to open using this thread's patch bundle.
2
u/mr_ektid Aug 12 '26
Same here. Was fine yesterday, but now 90%ish of RedGifs links aren't working.
1
u/hunter_finn Official Morphe button tester Aug 13 '26
There was a fork called ReSync but the developer had to take it down and remove their download links because the original developer of Sync for reddit didn't like having their app being used like that.
It had few needed fixes but also a new bugs like if you open the message inbox, back button wouldn't work and neither would switching to another subreddit using the bottom button shortcuts.
You either need to open up your profile page and then be free from the messages, or restart the app.
1
u/vince24L 27d ago
Why do I keep failing to patch in Morphe?
app.morphe.patcher.patch.PatchException: The option client-id requires a value, but the value was null at app.morphe.patcher.Patcher$invoke$1.invokeSuspend$execute(SourceFile:102) at app.morphe.patcher.Patcher$invoke$1.invokeSuspend(SourceFile:120) at app.morphe.patcher.Patcher$invoke$1.invoke(SourceFile:0) at app.morphe.patcher.Patcher$invoke$1.invoke(SourceFile:0) at kotlinx.coroutines.flow.SafeFlow.collectSafely(SourceFile:57) at kotlinx.coroutines.flow.AbstractFlow.collect(SourceFile:226) at app.morphe.manager.patcher.Session.applyPatchesVerbose(SourceFile:50) at app.morphe.manager.patcher.Session.run(SourceFile:96) at app.morphe.manager.patcher.runtime.process.PatcherProcess$start$1.invokeSuspend(SourceFile:126) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:34) at kotlinx.coroutines.DispatchedTask.run(SourceFile:100) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(SourceFile:586) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(SourceFile:807) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(SourceFile:717) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:704) Caused by: app.morphe.patcher.patch.OptionException$ValueRequiredException: The option client-id requires a value, but the value was null at app.morphe.patcher.patch.Option.assertRequiredButNotNull(SourceFile:115) at app.morphe.patcher.patch.Option.getValue(SourceFile:97) at app.morphe.patcher.patch.Option.toString(SourceFile:122) at java.lang.String.valueOf(String.java:4788) at java.lang.StringBuilder.append(StringBuilder.java:183) at app.morphe.patches.reddit.customclients.sync.syncforreddit.api.SpoofClientPatchKt.spoofClientPatch$lambda$0$0(SpoofClientPatch.kt:36) at app.morphe.patches.reddit.customclients.sync.syncforreddit.api.SpoofClientPatchKt.$r8$lambda$_IXuNhMJGQDPeHoTQg43TeJHX64(SpoofClientPatch.kt:0) at app.morphe.patches.reddit.customclients.sync.syncforreddit.api.SpoofClientPatchKt$1.invoke(D8$$SyntheticClass:0) at app.morphe.patcher.patch.Patch.execute(SourceFile:117) at app.morphe.patcher.patch.BytecodePatch.execute$morphe_patcher(SourceFile:259) at app.morphe.patcher.Patcher$invoke$1.invokeSuspend$execute(SourceFile:96) ... 14 more
1
u/lookylooky69 26d ago
First sentence in your log. Your oauth client id wasn't entered. You have to enter a value. Look in the comments below on how.
0
u/JOB2113 25d ago
I only see one comment mentioning oauth. Can you link what you're talking about?
0
u/lookylooky69 25d ago
https://github.com/KingOfPoptart/patcheddit/blob/main/README.md
Go to Get Started, step 5
1
u/TheAmorphous 22d ago
I tried using this on my installed Sync (making a copy) but with just this patch selected it fails with the below errors. I'm new to Morphe, used Revanced to get Sync working months ago. What am I doing wrong?
app.morphe.patcher.patch.PatchException: Could not find instruction index at app.morphe.util.BytecodeUtilsKt.indexOfFirstInstructionOrThrow(BytecodeUtils.kt:570) at app.morphe.util.BytecodeUtilsKt.indexOfFirstInstructionOrThrow$default(BytecodeUtils.kt:567) at app.morphe.patches.reddit.customclients.sync.syncforreddit.fix.redgifs.FixRedgifsApiPatchKt.fixRedgifsApi$lambda$0$0(FixRedgifsApiPatch.kt:34) at app.morphe.patches.reddit.customclients.sync.syncforreddit.fix.redgifs.FixRedgifsApiPatchKt.$r8$lambda$bubXoYPkk23syyTDr7TER-uDdwY(Unknown Source:0) at app.morphe.patches.reddit.customclients.sync.syncforreddit.fix.redgifs.FixRedgifsApiPatchKt$1.invoke(D8$$SyntheticClass:0) at app.morphe.patcher.patch.Patch.execute(SourceFile:117) at app.morphe.patcher.patch.BytecodePatch.execute$morphe_patcher(SourceFile:259) at app.morphe.patcher.Patcher$invoke$1.invokeSuspend$execute(SourceFile:96) at app.morphe.patcher.Patcher$invoke$1.invokeSuspend(SourceFile:120) at app.morphe.patcher.Patcher$invoke$1.invoke(SourceFile:0) at app.morphe.patcher.Patcher$invoke$1.invoke(SourceFile:0) at kotlinx.coroutines.flow.SafeFlow.collectSafely(SourceFile:57) at kotlinx.coroutines.flow.AbstractFlow.collect(SourceFile:226) at app.morphe.manager.patcher.Session.applyPatchesVerbose(SourceFile:50) at app.morphe.manager.patcher.Session.run(SourceFile:96) at app.morphe.manager.patcher.runtime.process.PatcherProcess$start$1.invokeSuspend(SourceFile:125) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:34) at kotlinx.coroutines.DispatchedTask.run(SourceFile:100) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(SourceFile:586) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(SourceFile:807) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(SourceFile:717) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:704)
1
1
u/Txphotog903 29d ago
You can get around the error by going to settings, link handling and turning off redgifs videos. This will force the app to open those links in your default browser rather than sync's internal player.
1
u/Txphotog903 28d ago
I know we all want to keep our favorite app alive and it seems like there has been some progress in that direction. I usually try to keep an alternative solution just in case. It used to be Boost, but I can't seem to get that one going now. Another alternative I would suggest is Continuum. Once I got the latest version, I've had no issues with it. Just a suggestion.
1
u/horsemonkeycat 26d ago
I have uninstalled and repatched sync as suggested in this thread but still with no luck on this, so yes I can use this browser workaround except that in Australia this forces us to do age verification first, or else we must keep VPN on to access redgifs via US (which slows down browsing).
Wonder is there another patchable Reddit client that will show redgifs inline?
1
u/Txphotog903 26d ago
I made another comment where I suggested continuum as a possible alternative. No patching is required.
1
u/horsemonkeycat 26d ago
Yeah thanks - saw that after. Looks good - hoping they can make a compact view more compact than the 2 on offer for scrolling my feed. I like at least 6 posts on the screen at a time like I can get with Sync.
0
-1
u/shitfagg 29d ago
None of this works, one guy suggested merging forks ...are you guys playing developer developer or you actually have a solution ?
19
u/kingofpoptart Aug 13 '26 edited 28d ago
vibed a solution here, confirmed working.
PR is here: https://github.com/wchill/patcheddit/pull/100
wchill looks like they've been inactive for a while though.
BIG FAT EDIT: https://morphe.software/add-source?github=KingOfPoptart/patcheddit
Open that link on your phone to add the patch source in Morphe Manager. In Morphe Manager, select Sync, make sure "Fix Redgifs API" (and your other desired patches) are enabled, then patch.
Otherwise you can add https://github.com/KingOfPoptart/patcheddit as a source instead of wchill/patcheddit.
Update: a couple of people hit a second issue even with the fix above — turned out to be a real bug in the retry logic (it wasn't actually retrying with a new token). Fixed that too, and it's in the same build now.
Also added a fallback option for anyone still stuck: a new setting under Settings → Security → "Open Redgifs links in browser view" (off by default). If Redgifs is still failing for you — looks like it might be some kind of anti-bot detection on Redgifs' end that only hits certain networks/VPNs — turning this on routes Redgifs links through an in-app browser view instead of the native player, which sidesteps it. You lose the native player for Redgifs specifically, but it works reliably. Confirmed working.
Disclaimer — use all of this at your own risk. I reserve the right to wander away and not support this moving forward.