Issue with NASA APOD

Hey, I'm using discord.js v14 and I have a /nasa command that displays the nasa's astronomy picture of the day. But recently, the image is no longer showing in the embed, even if the url is correct. I tested sending the image embed with an online tool (embed generator) via a webhook, and the image is not showing at all. Here is the link: https://apod.nasa.gov/apod/image/2503/image_1236LeoTrio.JPG. Is there any reason to this? Is there a possibility that somehow nasa's api block the request to the image?? Btw I have no error in my console
7 Replies
d.js toolkit
d.js toolkit2w 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!
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Shuttle
ShuttleOP2w ago
Either with EmbedBuilder.setImage() or embed object, it just doesn't work. This is not the problem because a few days ago it was working (my bot was active for a few years and it always worked, except now). For example with this code it doesn't show the image:
/eval code:interaction.reply({embeds: [ { image: { url: "https://apod.nasa.gov/apod/image/2503/Shark_Martin_5441.jpg" } } ]});
/eval code:interaction.reply({embeds: [ { image: { url: "https://apod.nasa.gov/apod/image/2503/Shark_Martin_5441.jpg" } } ]});
Shuttle
ShuttleOP2w ago
No description
Shuttle
ShuttleOP2w ago
this would be the most likely answer The link in my example below was working (https://apod.nasa.gov/apod/image/2503/Shark_Martin_5441.jpg), but now none of the links are working
Shuttle
ShuttleOP2w ago
As I said it was working for a long time (since 2023). The last time it worked was 3 days ago
No description
Shuttle
ShuttleOP2w ago
But let's say you're right, what would be the solution? I tried with the non-hd image (only 216kb), it still doesn't work 🤷‍♂️ Yeah it's weird, thx for your help I'll try to implement this

Did you find this page helpful?