Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.
Builder content link
Builder.io: Visual Development Platform
Builder public api key
a73e01a1c6a34697ab20d49c30aab093
Detailed steps to reproduce the bug
- Use the Qwik API to retrieve the content
https://cdn.builder.io/api/v1/qwik/marketing-fe-alpha?apiKey=a73e01a1c6a34697ab20d49c30aab093&userAttributes.urlPath=%2F&includeUnpublished=true*
Response
{
"status": 500,
"message": "Error: The <Type> of the JSX element must be either a string or a function. Instead, it's a \"undefined\": undefined."
}
Code stack you are integrating Builder with
JS, REST API
Reproducible code example
curl --location 'https://cdn.builder.io/api/v1/qwik/marketing-fe-alpha?apiKey=a73e01a1c6a34697ab20d49c30aab093&userAttributes.urlPath=%2F&includeUnpublished=true'
<script async src="https://cdn.builder.io/js/qwik/qwikloader.js"></script>
<script>
(async () => {
const qwikUrl = new URL('https://cdn.builder.io/api/v1/qwik/marketing-fe-alpha');
qwikUrl.searchParams.set('apiKey', 'a73e01a1c6a34697ab20d49c30aab093');
qwikUrl.searchParams.set('userAttributes.urlPath', '/');
qwikUrl.searchParams.set('includeUnpublished', true);
const response = await fetch(qwikUrl);
const { html } = await response.json();
document.querySelector('#marketing-area').innerHTML = html;
})();
</script>