404 - Not found error
回答済みWhile uploading files using box API, getting 404 error. As per the error, invalid parent_id is being passed. We have checked the details and all values that are getting passed are as expected and correct. We also created a new folder for the account from which we are using the Access_Token and have provided Uploader permission to the newly created folder, but still getting the same error.
Error for reference: {readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …}
{readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …} abort: ƒ (a) always: ƒ () catch: ƒ (a) complete: (...) done: ƒ () error: (...) fail: ƒ () getAllResponseHeaders: ƒ () getResponseHeader: ƒ (a) overrideMimeType: ƒ (a) pipe: ƒ ( /* fnDone, fnFail, fnProgress */) progress: ƒ () promise: ƒ (a) readyState: 4 responseJSON: {type: 'error', status: 404, code: 'not_found', context_info: {…}, help_url: 'http://developers.box.com/docs/#errors', …} responseText: "{\"type\":\"error\",\"status\":404,\"code\":\"not_found\",\"context_info\":{\"errors\":[{\"reason\":\"invalid_parameter\",\"name\":\"parent\",\"message\":\"Invalid value 'd_147318100709'. 'parent' with value 'd_147318100709' not found\"}]},\"help_url\":\"http:\\/\\/developers.box.com\\/docs\\/#errors\",\"message\":\"Not Found\",\"request_id\":\"7dbcbkgv4y0vqiiw\"}" setRequestHeader: ƒ (a,b) state: ƒ () status: 404 statusCode: ƒ (a) statusText: "error" success: (...) then: ƒ (b,d,e) get complete: ƒ () get
Please note, we tried providing Editor and Previewer Uploader access as well and it did not help resolve the issue
Please suggest how can we resolve this issue.
Thank you.
-
正式なコメント
Hey Amrita,
This is for sure a permissions issue. You typically get not founds when the applications service account doesn't have access to the folder. You will either need to make an API as a user that has access to the folder or collaborate the service account into the folder.
Hope this helps,
Alex, Box Developer Advocate
コメントアクション -
Any solution for this ?
I am owner of my box account and i created a folder manually and uploaded file.
For first time i am able to get the folder details via api call and status code is 200,
later i had requested same api with my fresh access token, i am getting 404, but i can see my folder and file.
Any help here ?
サインインしてコメントを残してください。
コメント
2件のコメント