Can't create a component library

I'm following this guide about creating a custom component: Build custom component libraries | Retool Docs

  • I've cloned the new-custom-component repository to use for practice.
  • I'm using a self-hosted version of Retool.
  • It fails on step 4, I get this output:
$ npx retool-ccl init
? What name would you like to give your library of components (example: My Great Library)? ExampleLib
? What description would you like to give your library of components (example: A library full of great things.)? Test Library
Creating new library in the Retool backend..
Error happened while building: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

My "retool-ccl login" should be correct as I compared it to a colleague of mine (not that there was any useful indication whether the authentication was successful or not).

1 Like

Hi @Venelin_Pendev! Welcome to the community. :wave:

Generally speaking, Retool will never return HTML, which indicates that the issue most likely lies in the networking sitting between you and your Retool instance. The most common culprit I've seen is an application firewall (AFW), but it could be one of any number of factors. You should be able to confirm whether the request is hitting the Retool backend or not by checking container logs.

Is your colleague able to develop using the CCL without experiencing any issues? It would also be useful to get more information about your deployment:

  • Which version are you running?
  • Why kind of deployment is it? Docker? Kubernetes? Helm?
  • What cloud infrastructure are you deployed on?