I have tried every possible solution and everything else loads except the Zodiac Sign for the moon. Can you please fix it? That’s the main reason I purchased the Advanced membership.
First off, cheers for your patience and apologies for the tardy response. We’ve had a look at the issue you mentioned regarding the Zodiac Sign data not loading as expected. After reviewing the details you’ve provided, it seems everything is in working order on our end.
The snag appears to lie in how the Zodiac Sign data is being accessed in your code. Based on the API’s response structure, the Zodiac Sign information is nested a bit deeper than your current code fetches. You’re trying to grab it directly from data.moon.zodiac_sign, but the actual data you’re after is located within data.moon.zodiac_sign.moon_sign for the moon’s sign and data.moon.zodiac_sign.sun_sign for the sun’s sign.
Here’s a quick tweak to your code that should fix the issue:
This should ensure that the Zodiac Sign information (both sun sign and moon sign) is displayed as intended. Give this a shot, and please let us know if you’re still facing any issues. We’re here to help get this sorted for you.
Hi Dietmoonlyte,
First off, cheers for your patience and apologies for the tardy response. We’ve had a look at the issue you mentioned regarding the Zodiac Sign data not loading as expected. After reviewing the details you’ve provided, it seems everything is in working order on our end.
The snag appears to lie in how the Zodiac Sign data is being accessed in your code. Based on the API’s response structure, the Zodiac Sign information is nested a bit deeper than your current code fetches. You’re trying to grab it directly from
data.moon.zodiac_sign
, but the actual data you’re after is located withindata.moon.zodiac_sign.moon_sign
for the moon’s sign anddata.moon.zodiac_sign.sun_sign
for the sun’s sign.Here’s a quick tweak to your code that should fix the issue:
This should ensure that the Zodiac Sign information (both sun sign and moon sign) is displayed as intended. Give this a shot, and please let us know if you’re still facing any issues. We’re here to help get this sorted for you.
Best,
Luke @ Moon-API.com
Any update? It’s been several days…
Hi dietmoonlyte, Thank you for raising this, we will look into this right away and keep you updated.
Thank you
Moon-API.com support
For reference, here is my code. The moon phase is showing up correctly, the zodiac sign will not show up no matter what: