Clicking send results in 400 error
Currently using astro-feelback 0.3.4 on Starlight 0.32.5 and Astro 5.5.6. Followed the exact code provided in the documentation:
---
import "astro-feelback/styles/feelback.css";
import FeelbackTaggedMessage from "astro-feelback/components/FeelbackTaggedMessage.astro";
---
<div class="container">
<FeelbackTaggedMessage contentSetId="CONTENT_SET_ID"
preset="feeling"
/>
</div>
And althought the component renders without issue, when clicking send, there is no visible response on the component and the console log shows the following error:
Failed to load resource: the server responded with a status of 400 ()Understand this error
browser.js?v=440de8f9:1 [Feelback] Cannot send feelback Error: [feelback] API error
at q (browser.js?v=440de8f9:1:299)
at async Object._ [as post] (browser.js?v=440de8f9:1:145)
at async N (browser.js?v=440de8f9:1:2919)
The 400 status means you configured wrongly the client component causing the request will be wrong.
Checkout what the server sends you back with the error details. Just open the network inspector, do the "click" on your component and see the request/response logged, look the body.
You can paste here, I can support.
I saw what you pasted. You didn't replace the CONTENT_SET_ID with the real value on the dashboard.