I got interested in the new QWIK API and decided to give it a shot as it seems to have a big potential to improve performance.
I ran into some issues that are worth reporting. For several pages, the API returns a 500 error, while for other pages it is working fine. The only explanation I have so far is that those pages contain a symbol that fetches data from an endpoint.
Thanks for reaching out. For me all of the URLs fail with Error: organization is missing. You need to append &apiKey= YOUR_API_KEY. Since you said that one URL used to work I assume the above is cut&paste error. Once you fix the URLs I am happy to look at it.
As you can see this is on qa.builder.io. We would like you to give it a spin and let us know if there are any more issues before we push it to production.
Hi @Misko ,
Thanks for getting back to me.
The end result should be like https://www.sachini.co.uk ( the width of the page is slightly different as there is max width in nextjs)
I have the impression that 2 things are off:
This page consist of two symbols which repeat themselves, but with a different offset in order for each symbol to show different posts. When building that page in the builder, I do notice indeed that the content is duplicated there as well. The input field offset I presume is loaded client side, while that field is used to adjust and URL to load the posts serverside (the fetch is within a Builder.isServer). Server side those input fields don’t exist when editing the page, so the default value is used for each of them, hence they appear to repeat each other.
Using the content API or html API, each of those symbols shows a different post, as you can see on the website (https://www.sachini.co.uk)
Please let me know if you have more questions.
Best,
Vincent
Thanks for getting back to me, excellent news.
Happy to join on Discord, the link you have provided seems a QWIK endpoint though. If you can provide the right one we can meet there.