Box Skill Set - AWS Lambda Issue
Hello - I am trying to leverage box skill kit to extract image text data via aws lamba/Rekignition API. The request seems to be erring out at skillsWriter writing back to Box 404 error in AWS cloud watch .
Not sure what's an issue ? Can you please help?
Attach error message .
"errorType": "Runtime.UnhandledPromiseRejection", "errorMessage": "Error: Unexpected API Response [400 Bad Request | r1235ug7f0l82p4o] schema_validation_failed - instance type (integer) does not match any allowed primitive type (allowed: [\"string\"]) (pointer: /cards/0/skill/id)", "stack": [ "Runtime.UnhandledPromiseRejection: Error: Unexpected API Response [400 Bad Request | r1235ug7f0l82p4o] schema_validation_failed - instance type (integer) does not match any allowed primitive type (allowed: [\"string\"]) (pointer: /cards/0/skill/id)", " at process.on (/var/runtime/index.js:37:15)", " at process.emit (events.js:198:13)", " at process.EventEmitter.emit (domain.js:448:20)", " at /var/task/node_modules/skills-kit-library/node_modules/bluebird/js/release/debuggability.js:199:33", " at activeFireEvent (/var/task/node_modules/skills-kit-library/node_modules/bluebird/js/release/debuggability.js:242:44)", " at fireRejectionEvent (/var/task/node_modules/skills-kit-library/node_modules/bluebird/js/release/debuggability.js:632:14)", " at Promise._notifyUnhandledRejection (/var/task/node_modules/skills-kit-library/node_modules/bluebird/js/release/debuggability.js:65:9)", " at Timeout._onTimeout (/var/task/node_modules/skills-kit-library/node_modules/bluebird/js/release/debuggability.js:44:14)", " at ontimeout (timers.js:436:11)", " at tryOnTimeout (timers.js:300:5)", " at listOnTimeout (timers.js:263:5)", " at Timer.processTimers (timers.js:223:10)"
-
Hi ,
Could you post the code that you're using when this error occurs please? From the errors it seems like the format that you're using for the metadata when you save it back on the file might not match the standard Box Skills template. It looks like an int is being added when a string is expected.
For instance, I have this Skill with AWS + Clarifai, take a look at lines 50-67 to see if you're doing something similar to store the data.
- Jon
Please sign in to leave a comment.
Comments
1 comment