cube icon indicating copy to clipboard operation
cube copied to clipboard

SQL API: Can't get template Javascript error

Open bshoemanpax8 opened this issue 1 week ago • 2 comments

Problem

I'm getting the following error when trying to run any query in the SQL API, even select * from information_schema.tables:

ERROR:  User: Can't get template: JavaScript Error

Some things to note:

  • the SQL API works when using our config in a local docker container, without a separate cubestore and no custom repository factory
  • the REST API works without issues
  • there is a custom repository factory to pull schemas from a remote location
  • there is only one data source configured, no custom driver factory

Not sure if this is a bug or if something is misconfigured, so I'm submitting this as a question. I didn't see anything in this repo or the cube slack related to this question, and nothing searching around either, so this seems like a unique problem to my situation. (I did find where in the source code this error is thrown, but it seems to relate to the SQL generator object, which further confuses me.)

bshoemanpax8 avatar Jun 25 '24 22:06 bshoemanpax8