repr-v3 model API returning 400 error on published version

@chungwu
When I call this API, it works and returns a schema as expected:

curl \
  --header 'x-plasmic-api-project-tokens: PROJECTID:APITOKEN' \
  '<https://codegen.plasmic.app/api/v1/loader/repr-v3/preview/PROJECTID>'

However if I try to replace preview with published, it fails with the following error:

<https://codegen.plasmic.app/api/v1/loader/repr-v3/published/u3dfJG5ugQKxEsBPfSND2D>'
{"error":{"name":"BadRequestError","statusCode":400,"message":"A component name was not specified"}}

(using loader results in a 404)

I think I want to use the published state, not preview…

@chungwu seems to work as expected now. When hitting published, I now get a redirect to a new URL which loads correctly. Thank you!

@yang ^

Hi, I forgot to report back that we have fixed this :slight_smile: