Issue with media sync

Hey everyone.

Im having a random issue with syncing cards from my laptop onto my phone. I make cards on my macbook and Anki has been working just fine until randomly today. When I sync I am getting this error

A network error occurred.

Error details: ⁨error sending request for url ()⁩

I know this has been discussed so I have done all the discussed things (e.g., no VPN, no proxy, no firewall, internet is good, anki is updated, mac is updated) and it still hasnt resolved. When I sync, the cards and reviews sync over but media doesnt sync over to other devices. Unsure on why I am getting this issue as I have been making cards for 2-3 years now and not had this issue. Anyone have any ideas? Thanks

Please try all the usual network troubleshooting activities. Things like:

  • Reboot your computer.
  • Reboot your network modem/router.
  • Try different network connections. For example:
    • Disable your phone’s wifi (to force it to use the cellular data connection), enable the phone’s hotspot functionality, and connect your MacBook’s wifi to your phone’s hotspot.
    • Take your MacBook somewhere with public wifi, perhaps a nearby restaurant or library.
  • If you have access to a VPN, try using different VPN servers.

Edit: Added:

There’s also a Terminal command that flushes the DNS cache that you might want to try. (You’ll probably be asked to enter your password.):
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Thanks for the reply. Suddenly has started working after about 1 day of not working. Unsure why this is the case but at least its resolved now.