Rest API HTML loader not working

We have been using Rest API HTML Loader for a long time, but now it’s returning blank HTML

What are the reproduction steps?

curl --location 'https://codegen.plasmic.app/api/v1/loader/html/published/wCpkLLa3C4XwvXn1hZ84y8/Homepage?hydrate=1&embedHydrate=1&projectId=wCpkLLa3C4XwvXn1hZ84y8' \
--header 'x-plasmic-api-project-tokens: wCpkLLa3C4XwvXn1hZ84y8:<TOKEN>' \
--header 'x-plasmic-loader-version: 10'

Component data

{
            "id": "2JZEev5CfwHg",
            "displayName": "Homepage",
            "usedComponents": [
                "4W_C2X4zM9sy",
                "CHO21V9uYw",
                "HOQUyOpClJ",
                "IRZz_VoiCdgG",
                "JsqrR8IgYgLa",
                "Lo5vj-pTT_xg",
                "NK5qQv3pWFq3",
                "YGsSdkxIOiOt",
                "fmx4Dx-ZPExc"
            ],
            "projectId": "wCpkLLa3C4XwvXn1hZ84y8",
            "name": "Homepage",
            "renderFile": "render__2JZEev5CfwHg.js",
            "skeletonFile": "comp__2JZEev5CfwHg.js",
            "cssFile": "css__2JZEev5CfwHg.css",
            "path": "/",
            "isPage": true,
            "entry": "render__2JZEev5CfwHg.js",
            "isCode": false,
            "isGlobalContextProvider": false,
            "pageMetadata": {
                "path": "/",
                "description": "",
                "title": null,
                "canonical": null
            },
            "metadata": {}
        },

This is happening for multiple projects of ours. I am following the same example given on Plasmic’s portal.

I also tried with loader:

import { Api } from "@plasmicapp/loader-fetcher";

const api = new Api({
  projects: [
    {
      id: "wCpkLLa3C4XwvXn1hZ84y8",
      token:
        "",
    },
  ],
  host: "https://codegen.plasmic.app",
  nativeFetch: true,
});


api
  .fetchHtmlData({
    projectId: "wCpkLLa3C4XwvXn1hZ84y8",
    component: "uPs3tMWSOuSd",
    hydrate: true,
    embedHydrate: true,
  })
  .then(console.log)
  .catch(console.error);

// response
{
  error: {
    name: "NotFoundError",
    statusCode: 404,
    message: "Not Found",
  },
}

Relevant links:

Apologies, we are investigating this issue now.

The HTML loader API issue is now fixed.

We apologize we didn’t have enough testing and alerting for this endpoint. We’ve already added alerting and will add testing soon. Have a good weekend.

Thanks a lot, Jason, for getting this fixed.