Join the Webstudio community

Updated last month

Issues with Hygraph (status: 200)

At a glance
Hello everyone!
I hope you're all doing well 🙂

I'm having some connection issues between Webstudio and Hygraph. I followed the tutorial step by step, but I can't retrieve data when I use the query variable in Webstudio. Let me explain.

I set up my dynamic page and created my queries in Hygraph. When I create my data variable and follow all the steps from the video, everything works fine until I add { slug: system.params.slug }. After that, when I inspect the variable, I get an issue with Status: 200.

Does anyone know what I can do?
Attachments
Capture_decran_2025-02-21_a_14.26.56.png
Capture_decran_2025-02-21_a_14.26.40.png
Capture_decran_2025-02-21_a_14.26.32.png
Capture_decran_2025-02-21_a_14.26.17.png
Capture_decran_2025-02-21_a_14.26.09.png
C
J
F
8 comments
cc @Farès 😉
It looks like the system param is not outputting anything. Did you provide a test value in the address bar?
Attachment
Screenshot_2025-02-21_at_7.15.44_AM.png
Yes, we tried as indicated in the YouTube tutorial, but something is not working. I've tested the URL and query on Postman, and everything works fine. I also tested it on WebStudio with a slug, but it seems that no data is being returned when I put the variable.
Attachment
Capture_decran_2025-02-21_a_15.44.22.png
did you put a test value here? Just want to make sure because system.params.slug won't output anything if there is no test value
Attachment
Screenshot_2025-02-21_at_7.47.19_AM.png
If I do that it work ! Same If i put that : {
"slug": "content-federation-and-composable-architecture"
}
Great. Keep your expression the same, dont hardcode that value.

The expression uses whatever is in the actual URL on the live site. In the builder you can simulate the URL with the address bar.
Oh thanks my friend ! I thought I was oblige to use a variable like ( system.params.slug) to have something dynamic on my website 🙂 !
Okay, I got it! We started from scratch and missed some steps. Thank you for your replies! 🤓
Add a reply
Sign up and join the conversation on Discord