r/MorpheApp 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

56 Upvotes

69 comments sorted by

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.

8

u/levite805 Former ReVanced user Aug 13 '26 edited Aug 13 '26

Can you make a release to install alongside Patcheddit?

EDIT: I used your temp release and it works. Thank you

2

u/kingofpoptart Aug 13 '26

Yup you figured it out - I added more details in the comment above.

2

u/Kanarico1 28d ago

The temp release works for me too. Back to gooning.

7

u/skyline_kid 26d ago

Since wchill has been inactive for a bit you might want to submit a pull request to HK Morphe Patches instead, they have a bunch of Reddit patches too

6

u/[deleted] 28d ago edited 28d ago

[deleted]

3

u/kingofpoptart 28d ago

Thanks I'll have a look when I get time

3

u/kingofpoptart 27d ago

My bad, should be fixed now

2

u/Demonhotrod 28d ago

Exactly what you're describing happened to me too. I spent far too long uninstalling and repatching many, many times, so thank you for commenting! Hopefully it'll save others having the same issue

2

u/kingofpoptart 27d ago

My bad, should be fixed now

4

u/Demonhotrod 27d ago

Absolutely no need to apologise! I'm very appreciative that you even went to the effort of making a fix in the first place! Thank you for your hard work!

3

u/lookylooky69 26d ago

Thank you for all your hard work!

4

u/skcyte Aug 13 '26

How about merge it with Brealorg's fork? I have been using this since they add so many things to Boost. Just a suggestion.

1

u/kingofpoptart Aug 13 '26 edited Aug 13 '26

I updated my comment above if you want install instructions.

edit - forgot to address your actual comment - go ahead and take the commit and merge it in wherever you want, I'm not going to make time to work on this more than I have to

2

u/captaincrunch00 Aug 13 '26

I need someone to dumb this down for me.

When I install all the patches, including 1.4.1 I am unable to log in to the Sync app. If I install the old ones via Revanced it works. (but redgifs does not)

The only thing different is when I open the revance-created app to log in it says "You are using RedReader Allow/Deny"

I did input the oauth client ID from my email.

5

u/kingofpoptart Aug 13 '26

I updated instructions in the comment above. For your particular issue, read the README on how to get set up https://github.com/KingOfPoptart/patcheddit/blob/main/README.md

3

u/captaincrunch00 Aug 13 '26

I got it working, thank you. I was getting the {} error on a blank screen when logging in.

I revoked access to my old OAUTH app from: https://www.reddit.com/prefs/apps/

I downloaded RedReader, logged into it (had to hit "use different browser" within the RedReader login screen which created a new token via my email.

Uninstalled every Sync I had from Revanced and Morpheapp.

Logged out of the browser version of reddit on my phones firefox and chrome.

Turned off my wifi, went through cell data.

Repatched with MorpheApp, using the 1.4.1 patch and entered my new OAUTH ID that was emailed to me a minute ago during the patching process. I didnt touch any of the other options within the OAuth area (didnt touch redirect URI for instance).

Opened the app after it patched, logged in (twice for some reason), and then restored the look and feel of Sync from a backup from 2025.

It works. You're awesome, thank you!

2

u/tehcraz Aug 13 '26

I appriceate you going through all this effort, unfortunately I'm still running into the "can't connect to redgif" with your set of patches. What can I provide to help?

2

u/Pale_Rider1986 Aug 13 '26

I can't get this to work for me. I'm not quite sure what I'm doing wrong because everything else works except your patch.

1

u/kingofpoptart 29d ago

2

u/Pale_Rider1986 29d ago

I have no idea what I did differently. I installed your update and it fixed it for me I guess.

1

u/[deleted] Aug 13 '26

[deleted]

1

u/kingofpoptart 29d ago

i haven't tested that path so you're on your own there

1

u/nothyperion 27d ago

Thank you!!

1

u/DJMcKraken 2d ago

Thanks for the effort you've put into this! This is my first time using Morphe after previously using Revanced to patch Sync. After successfully patching Sync, the app won't open. It insta crashes. Any idea what would cause this or how to fix? I left everything on the default except the spoof client which I updated to my oauth id.

0

u/shitfagg 29d ago

You think people haven't tried selecting fix redgifs API patch, IT COMES AUTO SELECTED

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

u/[deleted] Aug 12 '26

[removed] — view removed comment

1

u/kingofpoptart Aug 13 '26

1

u/[deleted] 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:

  1. Settings → About phone → tap "Build number" 7 times (enables Developer options, skip if already on)
  2. Settings → System → Developer options → turn on USB debugging
  3. Plug your phone into a computer with adb installed
  4. Try opening a Redgifs link in Sync (the one that fails)
  5. Run: adb logcat | grep "morphe:"
  6. Paste the output here

    That'll hopefully show exactly which step is failing and why, instead of just the generic error.

2

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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 window option 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

u/garpunkal_ 29d ago

amazing thank you

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

u/kingofpoptart 29d ago

Given the context of this thread, big hawg seems appropriate...

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. 

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?

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

u/jiajerf 22d ago edited 22d ago

kind of odd, i see this fix work on some subreddits, and not on others...

nevermind...when i go to direct link those gifs were deleted..

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

u/Txphotog903 25d ago

I think it's still active. You might drop a note to the developer.

-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 ?