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

api error #97

Open
ClaudioWayne opened this issue Jul 5, 2023 · 2 comments
Open

api error #97

ClaudioWayne opened this issue Jul 5, 2023 · 2 comments

Comments

@ClaudioWayne
Copy link

Hi,

I'm coming from CAPE, and I'm trying to set up the box-js api to integrate box-js with CAPE.
I followed the docs to set it up on a separate Ubuntu 22.04 VM: https://capev2.readthedocs.io/en/latest/integrations/box-js.html
The API is running, but unfortunately, the analysis fails when submitting a sample.
The same behavior appears, when i set up box-js via npm install box-js command.

Screenshot from 2023-07-05 07-44-40

cd ~/tmp-boxjs/box-js-7b0d7d8e-0f66-44f8-8e49-210c750cfa3a
cat .analysis-completed
{"server_err":0,"code":255,"stderr":""}

The analysis without API works fine:
Screenshot from 2023-07-05 08-25-15

Can someone help me out or point me in the right direction?

@kirk-sayre-work
Copy link
Collaborator

It looks like in api.js box-js was being run in the Docker container as "box-js /samples/ --output-dir=/samples --loglevel=debug --debug". I tested this from the command line and it fails. I have changed this to "box-js /samples/* --output-dir=/samples --loglevel=debug --debug" and it runs. I typically just run box-js directly, so could you pull the latest box-js from kirk-sayre-work and see if it fixes the CAPE problem?

@ClaudioWayne
Copy link
Author

Same Error on my side.
Did you test api with your changes on your side successfully?

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

2 participants