You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The axios library upgrade caused a regression where CSV formData could no longer be processed correctly in Node.JS, with an error thrown.
To Reproduce
Run a WOQL query in the javascript client that uploads a CSV file:
Error: API Error api:message Type error for null which should be dict api:status api:failure Code: 400 url: http://localhost:6363/api/woql/admin/GettingStartedDB/local/branch/main
at Object.apiErrorFormatted (/home/hoijnet/code/dfrnt/terminusdb-client-js/lib/errorMessage.js:95:13)
at /home/hoijnet/code/dfrnt/terminusdb-client-js/lib/dispatchRequest.js:227:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runQuery (/home/hoijnet/code/dfrnt/tuscli/examples/woql/content/emp.js:30:20) {
data: {
'api:message': 'Type error for null which should be dict',
'api:status': 'api:failure',
'system:witnesses': [
{
'@type': 'vio:ViolationWithDatatypeObject',
'vio:literal': null,
'vio:message': 'Type error for null which should be dict',
'vio:type': 'dict'
}
]
},
status: 400
}
System information (please complete the following information):
OS: Ubuntu
NodeJS 18
terminus-client 10.0.33
The text was updated successfully, but these errors were encountered:
Describe the bug
The
axios
library upgrade caused a regression where CSV formData could no longer be processed correctly in Node.JS, with an error thrown.To Reproduce
Run a WOQL query in the javascript client that uploads a CSV file:
Expected behavior
Return correct bindings.
Error logs
Error: API Error api:message Type error for null which should be dict api:status api:failure Code: 400 url: http://localhost:6363/api/woql/admin/GettingStartedDB/local/branch/main
at Object.apiErrorFormatted (/home/hoijnet/code/dfrnt/terminusdb-client-js/lib/errorMessage.js:95:13)
at /home/hoijnet/code/dfrnt/terminusdb-client-js/lib/dispatchRequest.js:227:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runQuery (/home/hoijnet/code/dfrnt/tuscli/examples/woql/content/emp.js:30:20) {
data: {
'api:message': 'Type error for null which should be dict',
'api:status': 'api:failure',
'system:witnesses': [
{
'@type': 'vio:ViolationWithDatatypeObject',
'vio:literal': null,
'vio:message': 'Type error for null which should be dict',
'vio:type': 'dict'
}
]
},
status: 400
}
System information (please complete the following information):
The text was updated successfully, but these errors were encountered: