Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zip of external cels fail #90

Open
tusharkantawp opened this issue Jan 12, 2023 · 8 comments
Open

zip of external cels fail #90

tusharkantawp opened this issue Jan 12, 2023 · 8 comments

Comments

@tusharkantawp
Copy link

If I upload a zip file of external cql files (dependent on one another), I get an error that invalid file format (it says format should be in cql or zip) though I am loading a zip file. Please advise what to do

@cmoesel
Copy link
Collaborator

cmoesel commented Jan 12, 2023

Hi @tusharkantawp. A few questions:

  • Is it a standard zip file or is it something else (like .zipx, .7z, .tgz, etc.)?
  • Are the CQL files at the root of the zip file or are they nested in subfolders?

@tusharkantawp
Copy link
Author

It is a standard zip file and all cqls are in root. Not in any subfolder.

@cmoesel
Copy link
Collaborator

cmoesel commented Jan 12, 2023

A colleague and I have both tried this and it seems to be working for us. It's hard to know if it is an issue with your zip file or with your system.

Here is a file that works fine for me. Can you try it?

my-cql-files.zip

@cmoesel
Copy link
Collaborator

cmoesel commented Aug 30, 2023

Hi @tusharkantawp. Is this still an issue? We were never able to reproduce it. If it's no longer a problem, I'd like to close this issue.

@nibaba007
Copy link

image
When uploading external cql files; The following error is reported:

Proxy error: Could not proxy request /authoring/api/externalCQL from localhost:3000 to http://localhost:3001/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET).
SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at parseELMFiles (D:\code\AHRQ-CDS-Connect-Authoring-Tool\api\src\handlers\externalCQLHandler.js:410:32) at D:\code\AHRQ-CDS-Connect-Authoring-Tool\api\src\handlers\externalCQLHandler.js:734:58 at Multipart.<anonymous> (D:\code\AHRQ-CDS-Connect-Authoring-Tool\api\src\handlers\cqlHandler.js:1797:7) at Multipart.emit (node:events:514:28) at finish (node:internal/streams/writable:748:10) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

@cmoesel
Copy link
Collaborator

cmoesel commented Dec 5, 2023

Hi @nibaba007. Based on the API stack trace you provided, it looks like there may be a problem converting the CQL into JSON. Are you running a local CQL Translation Service? If you look at the API README's Development Details section, it discusses this at the end. You can either disable the use of CQL-to-ELM in the config or run a CQL Translation Service using Java or Docker.

@nibaba007
Copy link

I am certain that I have started the service: cql translation service
image

@cmoesel
Copy link
Collaborator

cmoesel commented Dec 6, 2023

OK. Let's try a few things:

  1. If you create a simple artifact, does the "Download CQL" feature work? If so, does the zip file have a JSON file corresponding to each CQL file?

  2. When the CDS Authoring Tool API starts up, it should log out the config. Do you see something like this in the config?

  "cqlToElm": {
    "url": "http://localhost:8080/cql/translator",
    "active": true
  },

Is the URL pointing to http://localhost:8080/cql/translator?

  1. If you go to http://localhost:8080/cql/application.wadl in your browser and then right-click and view source, do you see XML with a top-level <application xmlns="http://wadl.dev.java.net/2009/02"> tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants