EmbedBuilder thumbnail issue

My bot scrapes data from pages on archiveofourown.org and uses it to build an embed. Recent changes to their server structure have led to a change in their image hosting url convention. Previously, the icon for a collection, for example, would have been something like https://s3.amazonaws.com/otw-ao3-icons/collections/icons/1202098/standard.jpg And now it is: https://archiveofourown.org/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBd0wzQkE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--89e42f456776250b65a1b0ce5fd453afdbe965f8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVdscGFRPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--b473e4b7ae8a5cd4b8fa012a59568c3797a2119a/original.jpg When I send this url as the thumbnail of an embed, nothing is displayed. When I send this url directly as a message through the discord client, it renders correctly. Is there anything that I can do to troubleshoot why this would fail? I have a feeling it's related to the ==-- portion of the url, but I have no way of knowing as no error is generated. Here is the console.log output of what I'm sending to the EmbedBuilder function. It worked correctly before the url change. `{ "color":16737792, "title":"Bagginshield Book Club", "url":"https://archiveofourown.org/collections/BagginshieldBookClub", "description":":orange_circle: Link posted by @shantismurf", "fields":[ {"name":"Description:","value":"This is a collection of stories that the Bagginshield Book Club on Discord has read and discussed since we started having weekly discussions in June of 2023. If you would like to join in on the discussion, please come check us out!"}, {"name":"--------------------","value":"-# Restricted works are not included in counts:"}, {"name":"\t","value":"Works (0), Bookmarked Items (69)"}, {"name":"\t","value":"Subcollections (0), Fandoms (0)"}, {"name":"Recent bookmarks","value":"- [think about all the places we could go](https://archiveofourown.org//collections/BagginshieldBookClub/works/3530120) by bellamysblakes (puddingandpie) (T)\n- [Lost Hopes and New Beginnings](https://archiveofourown.org//collections/BagginshieldBookClub/works/57658606) by Wildpoet (E)\n- [We were lovers in a past life](https://archiveofourown.org//collections/BagginshieldBookClub/works/675894) by westofnowhere (E)\n- [Er... Mistletoe?](https://archiveofourown.org//collections/BagginshieldBookClub/works/2820644) by bubbysbub (G)\n- [A Yuletide Wish](https://archiveofourown.org//collections/BagginshieldBookClub/works/35503927) by Slow_Burn_Sally (M)\n"}], "thumbnail":{"url":"https://archiveofourown.org/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBd0wzQkE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--89e42f456776250b65a1b0ce5fd453afdbe965f8/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVdscGFRPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--b473e4b7ae8a5cd4b8fa012a59568c3797a2119a/original.jpg"}, "footer":{"text":"Status: (Closed, Moderated)"} }
8 Replies
d.js toolkit
d.js toolkit4d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Amgelo
Amgelo4d ago
doesn't sound like a djs issue djs simply sends it, it doesn't do anything with the url
Shantismurf
ShantismurfOP4d ago
I wasn't aware of that! I'll look into it, thank you. I've reached out to their IT team to find out if the url change is temporary or if there's any other way to access the images. The thumbnail works with one url, and not with the other. I dont see how it's not a djs issue? but the image renders correctly when sent as a message
d.js docs
d.js docs4d ago
We are not Discord, just some nerds who develop Discord bots! - /report appeals and age updates - /howtoreport reports (harassment/hacking/spam/abuse) - /support anything Discord related - /billing payment/nitro - /feedback feedback/feature requests
Amgelo
Amgelo4d ago
how the client renders something is outside the control of the library
Shantismurf
ShantismurfOP4d ago
I'll take a look at the debugger output and work from there. that makes sense
Amgelo
Amgelo4d ago
if you want you can ask in ddevs #useful-servers since it's more of an general api/client issue
Shantismurf
ShantismurfOP4d ago
thanks

Did you find this page helpful?