on 12-26-2018 10:11 AM
Hello all,
I'm trying to use the Topic Detection API from the SAP API Business Hub. Trying to run it directly from the website itself by using the "Try it out" feature.
I use a zip file with 2 .txt files in it and use the sample form data for providing input. But I get back a 400 response with error as (below):
Could someone please help me understand what I am doing wrong. Thanks!
{
"error": {
"code": "400",
"message": "Invalid File Input: Absolute path, or hierarchy in archive file is not allowed",
"requestId": "c1a3d32f-90e4-4d3d-634d-c1636199bef6"
}
}
Problem: The files are placed under (another) directory i.e. folder is zipped.
Solution: Instead of folder, the files should be zipped. i.e. Select the files and then select add to .zip
I faced the same issue and found that the files are not placed DIRECTLY inside the .zip file like Lars Gregori said.
Hope this helps.
Br,
Pavan Golesar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your zip file contains the __MACOSX directory and they are inside a directory.
Use the zip command: zip data.zip *.txt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi nabheet.madan3 thanks for your kind response. Please find a link to access the files I had used.
Link: https://filebin.net/qscysyqa5d58pnio
Thank you! Please let me know if you are unable to access the link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.